/*Simple Java Program to read a file and display it on the screen */ /*First create an text file and save it as Output.txt*/ Code for N...
Read More
Showing posts with label JAVA. Show all posts
Showing posts with label JAVA. Show all posts
Read a file and display on screen
/*Simple Java Program to read a file and display it on the screen */ import java.io.*; public class NewFile { public static void main(Stri...
Read More
Bubble Sort
/* Simple Java program on Arrays - Bubble sort on numbers*/ import java.io.*; class Bubble { public static void main(String args[]) throws...
Read More
Length Convertor
/* Simple Java Program to convert miles, kilometers, meter, feet, centimeter and inches */ import java.io.*; public class ConverterIO { publ...
Read More
Implementation of Matrix Operation Using Arrays
import matrix; class Matrix { public static void main(String args[]) { int i,j,k; int mat1 [][]={ {1,2,3}, {4,5,6}, {7,8,9} }; ...
Read More
Implementation Of Threads
import java.io.*; import java.util.*; class AA extends Thread { int i; public void run() { System.out.println("Thread A")...
Read More
Implementation of Vector
import java.util.Vector; import java.io.*; public class MainClass extends Thread { public static void main(String args[]) throws Interrupt...
Read More
Subscribe to:
Posts (Atom)