Home
All posts
Thursday, February 9, 2017
Find the day of the week of a given date
Question:: Implement a Java-method that prints out the day of the week for a given day (1..31), month (1..12) and year. Code:: import ...
Read more
Wednesday, February 8, 2017
Multiple Strings Java
Code:: import java.util.*; public class MultipleString { public static void main(String[] nt) { Scanner in =new Scanner(S...
Tuesday, February 7, 2017
Binary Search Tree (BST) Java
Binary Search Tree Construction and Various Traversals: Code:: import java.util.*; class node { node right,left; int d; ...
Monday, February 6, 2017
Message Encrypt Java
Question:: A secret code encrypts a message by putting it in an array and reading down the columns (blanks are replaced ...
Sunday, February 5, 2017
Number Rhombus Structure
Following Code Will print the Rhombus Structure : Code:: import java.util.*; public class Rhombus { public static void main(Str...
Pascal Triangle Java
In mathematics , Pascal's triangle is a triangular array of the binomial coefficients . Pascal Triangle: Code...
Saturday, February 4, 2017
All is Nothing Java Program
Question:: Consider the sequence of digits from 1 through N (N<=9) in increasing order: 1 2 3 4 … N Insert either a ‘+’ (for additi...