Posts from Java

How to get input from the user in java?

By Faruque Ahamed Mollick

Here in this Java tutorial, you will learn how to get input from users with simple example code snippets. To get input from users in Java, we are going to use Java Scanner class. T.... Read More

What Is Inheritance In Java?

By Faruque Ahamed Mollick

Inheritance in Java is a process where a Java class get the properties of another class. The properties can be methods and fields. With the inheritance process in Java, the info.... Read More

How To Read File From URL In Java?

By Faruque Ahamed Mollick

I have already told you how to read a text file that is located in your local directory. We used BufferedReader Java class that is available to use when we import java.io.* Now i.... Read More

Java Program to Print Star Triangle Pattern Using for Loop

By Faruque Ahamed Mollick

Loops are so important for any types of programming language. for loop in java is so useful. You can use for-loop if you need to repeat a particular task for a specific number of .... Read More

Understanding do-while loop in java language

By Faruque Ahamed Mollick

A do while loop in java is just like a while loop but the main difference between while and do-while loop is that do-while loop is guaranteed to execute the loop at least one time.... Read More

Simple Java Code To Read A File Using BufferedReader

By Faruque Ahamed Mollick

Hello, friends. I am here again with another simple Java example code. Are you trying to read the text of a file? If yes, then this post may give you the solution. Java BufferedR.... Read More

How to create object of a Java class?

By Faruque Ahamed Mollick

Java is almost 100% Object Oriented Programming language. Whatever you need to do in Java, you have to create Class. In this post, I am going to tell you how to create the object i.... Read More

Reading A Text File Line By Line In Java With Example

By Faruque Ahamed Mollick

In this post, I am going to give you Java code snippet which will read a text file line by line. In this Java tutorial, I am going to use the BufferedReader Java class. It is goin.... Read More

Related Posts