You are here

Page not found

Search results

  1. Java program to convert Fahrenheit to Celsius

    Java program to convert Fahrenheit to Celsius: This code does temperature conversion ... = window.adsbygoogle || []).push({}); Java temperature conversion program import java.util.* ; ...

    Yogesh Suneja - 04/12/2019 - 19:46

  2. Java program to print alphabets

    Java program to print letters (i.e., a, b, c, ..., z in lower case) on the screen using a loop. Java program class Alphabets {   public static ...

    Yogesh Suneja - 04/12/2019 - 09:16

  3. Java program to print prime numbers

    Java program to print prime numbers, a user input how many of them are required. Remember, the smallest prime number is 2. We use the sqrt method of Math package, which finds the square ...

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

  4. Binary search in Java

    Java program for binary search: This code implements the binary search algorithm. ... ) ;     System . out . println ( "Enter number of elements" ) ;     n = in. nextInt ( ) ; ...

    Yogesh Suneja - 05/12/2019 - 09:11

  5. 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 program asks the user to enter an integer, a floating-point number, and a string, and we print them on the screen. Scanner class is present ...

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

  6. If else program in Java

    The if-else Java program uses if-else to execute statement(s) when a condition holds. Below is a simple application that explains the usage of if-else in Java programming language. In the program, a user input marks obtained in an ...

    Yogesh Suneja - 04/12/2019 - 00:32

  7. 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

  8. 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

  9. Linear search in Java

    Java program for linear search: Linear search is straightforward; to check if an ... ) ;     System . out . println ( "Enter number of elements" ) ;     n = in. nextInt ( ) ; ...

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

  10. 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

Pages