You are here

Page not found

Search results

  1. Java program to find all substrings of a string

    Java program to find substrings of a string: This program find all substrings ... method of String class is used to find a substring. Java code to print substrings of a string is given below. Java programing code import java.util.Scanner ;   class ...

    yogesh - 15/01/2018 - 10:57

  2. Java program to perform garbage collection

    Java program to perform garbage collection: Free memory in Java virtual machine is printed and then garbage collection is done using gc ... is used to get reference of current RunTime object. Java programming source code import java.util.* ;   class ...

    yogesh - 14/01/2018 - 22:38

  3. Using multiple classes in a Java program

    A Java program can contain any number of classes. Following Java program comprises of two classes: Computer and Laptop. Both classes have ... two classes and call their methods. Using two classes in Java program class Computer { Computer ( ) { ...

    yogesh - 10/01/2018 - 19:34

  4. Java static block program

    Java programming language offers a block known as static which is executed ... later we will see the practical use of a static block. Java static block program class StaticBlock { public ... what operating system is installed on a user machine. In our Java code, we check which operating system is installed on a user machine, if a ...

    yogesh - 10/01/2018 - 18:43

  5. Java program to print alphabets

    Java program to print alphabets on screen, i.e., a, b, c, ..., z; in lower case. Java source code class Alphabets { public static ... ; } } You can easily modify the above java program to print alphabets in upper case. Download Alphabets ...

    yogesh - 10/01/2018 - 17:58

  6. Java hello world program

    Hello world Java program: Java code to print hello world. Java programming source code class HelloWorld { public ...

    yogesh - 10/01/2018 - 16:20

  7. Java program to convert Fahrenheit to Celsius

    Java program to convert Fahrenheit to Celsius: This code does temperature conversion from Fahrenheit scale to Celsius scale. Java programming code import java.util.* ;   class FahrenheitToCelsius { public static ...

    yogesh - 10/01/2018 - 18:31

  8. Java program to find odd or even

    This java program finds if a number is odd or even. If the number is divisible by ... the modulus operator to find remainder in our program. Java programming source code import java.util.Scanner ;   class OddOrEven { public static ...

    yogesh - 10/01/2018 - 18:29

  9. How to take input from a user in Java

    Java program to get input from a user: we are using Scanner class to get input ... they are printed on the screen. Scanner class is present in java.util package so we import this package into our program. We first create ... to input a float 3) nextLine to input a string Java input program import java.util.Scanner ;   class ...

    yogesh - 10/01/2018 - 18:17

  10. Java program to print multiplication table

    Java program to print multiplication table of a number entered by a user using ... for while or do while loop for practice. Java programming source code import java.util.Scanner ;   class MultiplicationTable { public ...

    yogesh - 10/01/2018 - 18:02

Pages