About 50 results
Open links in new tab
  1. Java Examples - Programiz

    The best way to learn Java programming is by practicing examples. The page contains examples on basic concepts of Java. You are advised to take the references from these examples and …

  2. Java Hello World - Your First Java Program

    After all, it's a basic program to introduce Java programming language to a newbie. We will learn the meaning of public, static, void, and how methods work? in later chapters.

  3. Your First Java Program

    Your First Java Program In the previous tutorial you learned how to install Java on your computer. Now, let's write a simple Java program. The following program displays Hello, World! on the …

  4. Learn Java Programming

    If you want to learn Java for free with a well-organized, step-by-step tutorial, you can use our free Java tutorials. Our tutorials will guide you through Java one step at a time, using practical …

  5. Java Program to Swap Two Numbers

    In this program, you'll learn two techniques to swap two numbers in Java. The first one uses a temporary variable for swapping, while the second one doesn't use any temporary variables.

  6. Programiz: Learn to Code for Free

    Learn to code in Python, C/C++, Java, and other popular programming languages with our easy to follow tutorials, examples, online compiler and references.

  7. Java Program to Check if a String/Number is Palindrome

    To check a Palindrome in Java, we first reverse the string or number and compare the reversed string or number with the original value. Example 1: Java Program to Check Palindrome String

  8. Java Basic Input and Output - Programiz

    In this tutorial, you will learn simple ways to display output to users and take input from users in Java. We will use the print () method to display output and the Scanner class to take input.

  9. Java Program to Check Whether a Number is Prime or Not

    In this article, you'll learn to check whether a number is prime or not. This is done using a for loop and while loop in Java.

  10. Java Program to Print an Integer (Entered by the User)

    In this program, you'll learn to print a number entered by the user in Java. The integer is stored in a variable using System.in, and is displayed on the screen using System.out.