Home
All posts
Thursday, June 29, 2017
Registration Form JSwing
Code: import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; impo...
Read more
Wednesday, June 28, 2017
Notepad Using Java
Code: package com.nearur; import java.awt.FileDialog; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; impor...
CountDown Timer
Code: class Timer implements Runnable{ Thread t; int n; public Timer(int x) { t=new Thread(this); n=x; } public v...
Stack Push Pop Threads
Code: class stack { int[] a; int top=-1; public stack(int size) { a=new int[size]; } void push(int x){ if(top==a.lengt...
Tuesday, June 27, 2017
Source Code Analysis
Following code will print the number and names of Objects,Classes,Interfaces created in java source file. Code: import java.io.*; imp...
Monday, June 26, 2017
MyScanner Class
Following Code will define a class MyScanner to take input from user using InputStreamReader .. Code: import java.io.BufferedReader; ...
MyInteger Wrapper Class
Following Code define a Class MyInteger Which acts as a Wrapper class for integer : Code: class MyInteger { int i; MyInteger(int i...