Popular Codes

Thread Inner Classes

Description This code shows the implementation of threads with inner classes. Source Code class InnerThread1 { private int countDown = 5; private Inner inner; private class Inner extends Thr ...

0 Comments. 2733 views since Sep 10, 2008

Simplified DES (SDES) Algorithm

Description This is a Java code for Encryption, Decryption and Key generation in Simplified DES (SDES) algorithm used in Cryptography and Network Security. Sample output: >SKT_SDES 0000011111 01000111 Key K1: 01101011 Key K2: 101 ...

7 Comments. 2365 views since Sep 22, 2008

Login

Description This code makes the Login ID of any person with the required password. Source Code <BODY> <center><table border=1> <tr><form name=members><td ...

1 Comments. 2155 views since Sep 22, 2008

Hello World using Pointer

Description This a simple code show how to make Hello World application in C with and without using pointers. Source Code /* Simple Version......... */ #include int main() { printf( ...

10 Comments. 1234 views since Jul 28, 2008

JTree: File and Directory Tree

Description This is a sample code of JTree. By using this code you can make the Tree of Diretories and Files for Example: Windows File Explorer. Source Code import java.awt.*; import java.io.File; import ...

0 Comments. 1109 views since Aug 16, 2008

Swing and Thread for Length Operation

Description This code shows the lengthy process for searching a particular bank account's remaining balance. Source Code package yfrindia; import java.awt.BorderLayout; import java.awt.FlowLayout; ...

0 Comments. 1088 views since Sep 10, 2008

Shortest Job First (SJF)

Description C Language: This is a sample code to implement the Shortest Job First Algorithm, Operating System Source Code #include<conio.h> void main() { int n,i,j,a[10],b[10],temp; float sum,avg_w ...

2 Comments. 894 views since Aug 22, 2008

B Tree

Description Program of insertion and deletion in B tree...In data structures, a B-tree is a tree data structure that keeps data sorted and allows searches, insertions, and deletions in logarithmic amortized time. Unlike self-balancing binary se ...

0 Comments. 849 views since Jan 1, 2009

Counter with Swing & Thread

Description This code shows a circle which on pressing of start button starts filling the circle with red colour and on pressing stop, stops the activity. Source Code import java.awt.BorderLayout; impor ...

0 Comments. 793 views since Sep 10, 2008

Floyd Warshall Algorithm

Description This program shows the implementation of Floyd Warshall Shortest Path Algorithm. Source Code #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib. ...

0 Comments. 790 views since Sep 1, 2008

Interconversion of Number System

Description It is a program for conversion of Number System viz. Binary to Decimal,Decimal to Binary,Decimal to Octal, Decimal to Hexadecimal,Octal to Decimal,Octal to Binary,Binary to Octal,Binary to Hexadecimal, Hexadecimal to Binary, Hexadec ...

0 Comments. 765 views since Sep 4, 2008

JComboBox: Date & Time

Description This is a Code which demonstrates how to add Listeners to a ComboBox & shows Date &/or Time according to the System Date & Timings in different formats based on the selection in the ComboBox. Source Code <pre name="code" ...

0 Comments. 704 views since Aug 21, 2008

Breath First Search(BFS) and Depth First Search (DFS)

Description THIS CODE IS SIMPLE BUT NOT EASY TO WRITE SO PLEASE BEFORE RUNNING THE PROGRAM SEE THE CODE AND THEN RUN IF YOU DO'NT UNDERSTAND THEN SUMMIT QUERRY IN email address dwarikachandra@gmail.com Source Code <pre name="code" cl ...

0 Comments. 679 views since Jan 5, 2009

Determinant Calculator

Description To calculate Determinant of a Matrix Using Recursion(Max: 4*4) Source Code //TO CALCULATE THE DETERMINANT OF MATRIX OF ANY ORDER USING RECURSION #include&lt;iostream.h&gt; #include&lt;coni ...

0 Comments. 648 views since Sep 1, 2008

Insertion in AVL Tree

Description Program for insertion in AVL tree...n Data Structure, an AVL tree is a self-balancing binary search tree, and it is the first such data structure to be invented. In an AVL tree, the heights of the two child subtrees of any node diff ...

0 Comments. 646 views since Jan 1, 2009

Applet: Hello World

Description applet programming in java Source Code import java.applet.Applet; import java.awt.*; import java.awt.event.*; /* &lt;APPLET CODE=applet.class WIDTH=200 HEIGHT=200 &gt; &lt;/APPLET&gt; ...

0 Comments. 632 views since May 28, 2009

Bytes Counter: Text File

Description Program to find the number of Bytes in a Text File. Source Code #include&lt;fstream.h&gt; #include&lt;process.h&gt; #include&lt;stdio.h&gt; #include&lt;iostream.h&gt; #include&lt;proce ...

0 Comments. 627 views since Aug 25, 2008

Java Script: Snowfall

Description This is a program which shows snow fall. Source Code &lt;script&gt; var snowmax=35 var snowcolor=new Array(&quot;#aaaacc&quot;,&quot;#ddddFF&quot;,&quot;#ccccDD&quot;) var snowtype ...

0 Comments. 598 views since Sep 4, 2008

File Chooser

Description This code shows how to select files from your pc with a file browser. Source Code import static javax.swing.JFileChooser.APPROVE_OPTION; import static javax.swing.JFileChooser.APPROVE_SELEC ...

0 Comments. 584 views since Sep 30, 2008

Change Look and Feel

Description This is a very useful code fragment which improves your Java application's Look and Feel better. There are various methods provided by the Java. Most of them are following. Besides using these methods you can also use third party ...

0 Comments. 583 views since Jul 9, 2008