,
,By : Aniket Pataskar
INDEX
1. Hello World example 3
2. Add two matrices 4
3. Armstrong number 7
4. Binary Search 11
5. Bubble sort 14
6. Command line arguments 17
7. Find Odd or Even 18
8. Convert Fahrenheit to Celsius 21
9. Display Date and Time 23
10.Largest of three integers 26
11. Java Programs part 1 28
12. Java Programs part 2 49
13. Java Programs part 3 74
14. Java Programs part 4 102
15. Java Programs part 5 120
16. Java Programs part 6 134
17. Java Interview Questions part 1 161 18. Java Interview Questions part 2 178
“Hello World” is passed as an argument to println method, you can print whatever you
want. There is also a print method which doesn’t takes the cursor to beginning of next line
as println does. System is a class, out is object of PrintStream class and println is the
method.
Output of program:
, Output of program:
,By : Aniket Pataskar
INDEX
1. Hello World example 3
2. Add two matrices 4
3. Armstrong number 7
4. Binary Search 11
5. Bubble sort 14
6. Command line arguments 17
7. Find Odd or Even 18
8. Convert Fahrenheit to Celsius 21
9. Display Date and Time 23
10.Largest of three integers 26
11. Java Programs part 1 28
12. Java Programs part 2 49
13. Java Programs part 3 74
14. Java Programs part 4 102
15. Java Programs part 5 120
16. Java Programs part 6 134
17. Java Interview Questions part 1 161 18. Java Interview Questions part 2 178
“Hello World” is passed as an argument to println method, you can print whatever you
want. There is also a print method which doesn’t takes the cursor to beginning of next line
as println does. System is a class, out is object of PrintStream class and println is the
method.
Output of program:
, Output of program: