Category Java
Boolean Class in Java
Boolean class in Java is a wrapper class that wraps (converts) a primitive “boolean” data type value in an object. An object of Boolean class contains a single boolean type field where we can store a primitive boolean value. Boolean…
Java Float Class
Float class in Java is a wrapper class that wraps (converts) a value of primitive data type “float” in an object. An object of Float class contains a single float type field that store a primitive float number. Float class…
Java Double Class
Double class in Java is a wrapper class that wraps (converts) a value of primitive data type “double” in an object. An object of Double class contains a single field of type double. In this field, we can store a…
Output Formatting in Java using printf()
In this tutorial, we will learn how to formatting and displaying output in Java using printf() and format() methods. Java PrintStream class provides a method named printf() that works similar to printf() function in C. The printf() method is a…
How to Take Input in Java
In this tutorial, we will learn how to take input in Java from the user or keyboard. There are two ways by which we can take or accept input in Java from the user or from a file. BufferedReader Class…