You are here

Page not found

Search results

  1. Interface in Java

    Interface in Java: Java interfaces are like Java classes, but they contain only static final ...   // methods declaration } Interface program in Java In our program, we create an interface named Info that ...

    Yogesh Suneja - 05/12/2019 - 08:26

  2. Java program to compare two strings

    How to compare two strings in Java, i.e., test whether they are equal or not? The compareTo method of ... of its two objects. The method is case sensitive, i.e., "java" and "Java" are two different strings for it. If you wish to compare them ... || []).push({}); Output of program: Download Compare strings program class file. String ...

    Yogesh Suneja - 05/12/2019 - 08:42

  3. Swapping of two numbers in Java

    Java program to swap two numbers with and without using an extra variable . ... || []).push({}); Swapping program in Java import java.util.Scanner ; class SwapNumbers ...

    Yogesh Suneja - 05/12/2019 - 21:15

  4. Reverse a number in Java

    Java program to find the reverse of a number, for example, if the input is 951, the output is ...

    Yogesh Suneja - 05/12/2019 - 20:03

  5. Java program to print prime numbers

    Java program to print prime numbers, a user input how many of them are required. ... || []).push({}); Print prime numbers in Java import java.util.* ; class PrimeNumbers { ...

    Yogesh Suneja - 05/12/2019 - 00:22

  6. Java hello world program

    "Hello world" program in Java to display "Hello world" on the screen. How to write hello world rogram in Java? class HelloWorld {     public static void ...

    Yogesh Suneja - 04/12/2019 - 08:42

  7. Garbage collection in Java

    Java program to perform garbage collection: Free memory in Java virtual machine is printed, and then garbage collection is done using the ...

    Yogesh Suneja - 05/12/2019 - 18:51

  8. How to take input from a user in Java

    Java program to get input from a user, we are using Scanner class for it. The ... we print them on the screen. Scanner class is present in "java.util" package, so we import this package into our program. We create an ...

    Yogesh Suneja - 01/12/2019 - 08:56

  9. Bubble sort in Java

    Bubble sort in Java to sort numbers of an array in ascending/descending order. Bubble sort program in Java import java.util.Scanner ; class BubbleSort { ...

    Yogesh Suneja - 05/12/2019 - 20:40

  10. Armstrong number in Java

    Java program to check if a number is Armstrong or not, it is a number that is equal ... || []).push({}); Armstrong number program in Java import java.util.Scanner ;   class ...

    Yogesh Suneja - 05/12/2019 - 00:30

Pages