Category Java
How to Write File in Java
In this tutorial, we will learn how to write a file in Java. We need to read and write files in many applications. Java programming language supports both reading and writing text and binary files. But we will cover only…
How to Create a File in Java
In this tutorial, we will learn how to create a file in Java with the help of examples. Creating a file in Java is very easy by using pre-defined File class. This class is used to create a file in…
How to Read Text File in Java
In this tutorial, we will learn how to read data (or text) of a file using various classes in Java. There are several ways to read a text file in Java. By using the following classes, we can read data…
How to Convert Char to Int in Java
In this tutorial, we will learn how to convert char to int value and vice versa in Java easily. There are three ways to convert char to int value in Java. They are as follows: Get ASCII value Character.getNumericValue(char) String.valueOf(char)…
How to Convert Int to Double in Java
In this tutorial, we will learn how to convert int numeric value to double value, int value to Double object and vice versa in Java easily. To convert int to double numeric value in Java, we use an assignment operator.…