Page not found
Search results
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 ... program: Printing alphabets using a while loop (The code snippet shows only the body of the main method): char c = ...
Yogesh Suneja - 04/12/2019 - 09:16
Multiplication table in Java
Java program to print multiplication table of a number entered by a user using ... = window.adsbygoogle || []).push({}); Java program to print multiplication table import ... Download Multiplication table program class file. Code: import java.util.Scanner ; class Tables { ...
Yogesh Suneja - 30/11/2019 - 20:57
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 { public ...
Yogesh Suneja - 05/12/2019 - 20:40
Java program to get IP address
Java program to print the IP (Internet Protocol) address of a computer system, we use InetAddress class of java.net package, the getLocalHost method returns InetAddress object, which represents the localhost. Java IP address program import java.net.InetAddress ; ...
Yogesh Suneja - 05/12/2019 - 19:57
Linear search in Java
Java program for linear search: Linear search is straightforward; to check if ... || []).push({}); Linear search Java program import java.util.Scanner ; class LinearSearch { public ...
Yogesh Suneja - 05/12/2019 - 08:57
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 { public ...
Yogesh Suneja - 05/12/2019 - 21:15
Matrix multiplication in Java
Java program to multiply two matrices, before multiplication, we check whether ... = window.adsbygoogle || []).push({}); Java matrix multiplication import java.util.Scanner ; class MatrixMultiplication { ...
Yogesh Suneja - 05/12/2019 - 20:30
Transpose of a matrix in Java
Java program to find the transpose of a matrix (of any order), we interchange ... and columns to obtain the transpose. Matrix transpose in Java import java.util.Scanner ; class TransposeAMatrix { public ...
Yogesh Suneja - 05/12/2019 - 20:21
Matrix addition in Java
Java program to add two matrices of any order. You can modify it to add any ... || []).push({}); Addition of two matrix in Java import java.util.Scanner ; class AddTwoMatrix { public ...
Yogesh Suneja - 05/12/2019 - 20:07
Java program to generate random numbers
Java program to generate random numbers. We print 10 random numbers in the range [0, 100]. Program to generate random numbers in Java import java.util.* ; class RandomNumbers { public static ...
Yogesh Suneja - 05/12/2019 - 18:46