Java Tutorials

JavaTutorials: A blog that you can learn Java on.

Welcome to the JavaTutorials! This is a website where you can learn Java and practice your programming skills. We have a variety of puzzles, ranging from easy all the way to hard. If you are new to Java and just want to get started, take a look at our beginner puzzles!

If you get stuck on any of the puzzles, don’t worry! You can see solutions or ask for help in our forums:

Java Tutorials

Java is a programming language.

Java is platform independent.

Java has a robust development community.

HackerRank is the market-leading technical assessment and interview solution for hiring developers. We support 20+ languages such as Java, Python, JavaScript, PHP, Ruby, Go and many more.

We offer a range of tools to help you hire your next great developer. These include:

– [Coding tests]( that can be taken from any device at any time

– [Automated scorecards]( for assessing candidate skills

– [Live coding interviews]( for evaluating candidates in real time

If you are new to Java and wondering what it is all about, here is an article I wrote that can help you understand the basic concepts.

Java – What, Why and Where?

If you are thinking of learning Java, I would suggest starting by installing the JDK (Java Development Kit). Here is a tutorial on how.

How to Install Java on Windows 10

Once you have installed the JDK, you can start learning Java. The best way to learn any programming language is by writing programs. Here is a complete Java program that will help you test whether your installation was successful or not.

Hello World Program in Java

If you get any errors while compiling this program then check if the path variable has been set correctly.

Consider the following class:class Student {

private int id;

private String fname;

private double cgpa;

public Student(int id, String fname, double cgpa) {

super(); = id;

this.fname = fname;

this.cgpa = cgpa;


public int getId() {

return id;


public String getFname() {

return fname;


public double getCgpa() {

return cgpa;


// Write your code here

public static void main(String[] args){

Scanner in = new Scanner(;

int testCases = Integer.parseInt(in.nextLine());

List studentList = new ArrayList();


int id = in.nextInt();


String fname = in.nextLine();

double cgpa = in

This tutorial is about how to make a program in java that can read an integer number from the keyboard and reverse it using a method. For example, if you enter the number 12345, the program should display 54321.

To reverse an integer number in Java Programming, you have to ask to the user to enter the number. Now use the following steps to reverse it:

Divide the number into individual digits using modulus operator by 10.

Store the remainder (last digit of number) in some variable say reverse = reverse * 10 + digit.

Remove last digit of original number i.e., num = num/10.

Repeat step 2 and 3 till num > 0.

Display reverse value of input number as output.

Leave a Reply

Your email address will not be published.