Page not found
Search results
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 ...
Yogesh Suneja - 05/12/2019 - 19:57
Using multiple classes in a Java program
A Java program may contain any number of classes. The following program comprises of ... || []).push({}); Using two classes in Java program class Computer { Computer ( ) { ...
Yogesh Suneja - 04/12/2019 - 20:24
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
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
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 { ...
Yogesh Suneja - 05/12/2019 - 18:46
Linear search in Java
Java program for linear search: Linear search is straightforward; to check if an ... System . out . println ( "Enter value to find" ) ; search = in. nextInt ( ) ; ...
Yogesh Suneja - 05/12/2019 - 08:57
Transpose of a matrix in C
Transpose of a matrix in C language: This C program prints transpose of a matrix. To obtain it, we interchange rows and ... || []).push({}); C program to find transpose of a matrix #include <stdio.h> int main ( ...
Yogesh Suneja - 13/12/2019 - 20:54
log function in C
... number. Declaration: double log(double); C program to find logarithm of a number #include <stdio.h> #include <math.h> ...
Yogesh Suneja - 27/11/2019 - 18:40
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
Binary search in Java
Java program for binary search: This code implements the binary search algorithm. ... System . out . println ( "Enter value to find" ) ; search = in. nextInt ( ) ; ...
Yogesh Suneja - 05/12/2019 - 09:11