Problem: How to use foreach loop (enhanced for) that came with Java 5?
Problem: What is syntax for switch case statement in Java 7?
Java has very flexible literals for expressing different kinds of numbers. In this post we’ll go through all Java Literals one by one.
Problem: What are Java List types? What are their methods and what are their properties?
Problem: How to write Fizz Buzz in Java? The problem is as follows: Write a program that prints the numbers from 1 to 100. But for multiples of three print ‘Fizz’ instead of the number and for the multiples of five print ‘Buzz’. For numbers which are multiples of both three and five print ‘FizzBuzz’. …
Problem: What are sizes of Java primitive types?
Problem: What are default values of Java primitive types?
Problem: How to write “Hello, world!” in Java?