Java Programs 28 Lessons

Java programming examples with explanations

Java Programs

Java example programs with explanations. Basic java programs, Java integer number programs, Java loop programs, Java function programs, Java array programs, Java file I/O programs.

    Java Program to Compare Two Strings

    This Java program is used to demonstrates comparison of two strings. Java String Class which checks whether two given and initialized strings are equal or not.

      Java Program to Generate Random Numbers

      This Java program generates random numbers within the provided range. Its asks the user to provide maximum range, and generates a number within the range.