32,199 Topics

Member Avatar for
Member Avatar for msaqib

Demonstration of Linked list in java. Very simple and well commented java code for the beginners. Linked list of points are used to create a Polyline and display it More java codes at [URL="http://www.mycplus.com"]www.mycplus.com[/URL]

Member Avatar for jwenting
0
242
Member Avatar for thekashyap

------------------------------------------------------------ [COLOR=Blue][B]Intro:[/B][/COLOR] This is a small program that measures the performance of given java classes. In snippet there are 2 classes: 1. TestClass.java contains all java classes that are being measured for performance, I've picked up Narue's Sorting Algorithms as AUT (application under test) 2. AJPerf.java: contains the aspect that …

Member Avatar for thekashyap
0
147
Member Avatar for Fungus1487

Theres no doubting that using Java Swing is time consuming on load times. So heres a demo splash screen to keep your users captivated. You will need two classes for this example i.e. Splash.java and SplashWindow.java (remember line: 8 change this to match your splash image) just change the class …

Member Avatar for newtonorina
0
166
Member Avatar for thekashyap

Hi *, Here is a small program I had created to search for a given .class file within given CLASSPATH. It is primarily used in our project on test machines where lotsa ppl put lotsa patches in lotsa paths/jars and finally end up wondering which class file is being used. …

0
206
Member Avatar for kylethedarkn

Java Code that creates a random number between 1 and 100 and then asks the user to guess the number and tells if the guess was too high, too low or, the right number. Loops until right number is guessed.

Member Avatar for StonedNpwnd
0
334
Member Avatar for Maggot
Member Avatar for hemanthjava

JAVA Date Utility ( This program Demonstrates the proper use of Date functionality in common java programming scenarios ) Date and Time

Member Avatar for msg2ajay
0
202
Member Avatar for Rajnesh

This prog uses SQL Server's Master Databases xp_cmdshell stored procedure (Shell Commands) to send messages in a LAN.Make Sure the driver name is 'netsend' and it points to Master Database. Check and change the username and passwords in the Java Program also.Make sure you have sufficient priviledges to execute stored …

Member Avatar for Antony Prabu
0
184
Member Avatar for pierreth

This class implements a mechanism to encapsulate a selector. A selector is method signature descriptor. It is an easy way to create what may be called function pointers like in C language. I took my inspiration from Objective-C.

0
122
Member Avatar for cheenu78

A program that can send mails. This requires that you have activation.jar and mail.jar in you classpath.

Member Avatar for balagangadharm
0
172
Member Avatar for OurNation

When this program is run it asks for the coordinate grid points, then it processes that and the result is the run rise and slope.

0
276
Member Avatar for jarn

Use layers to create plots within a browser. Each point to be plotted is rendered via a layer (using the DIV tag). Mozilla/Firefox/IE seem to handle thousands of layers without any problem. Can attach event handler to each point for additional interactivity. Snippet example is housed within a JSP at …

0
108
Member Avatar for Narue

This code demonstrates AVL insertion and deletion. The code was originally written in C by myself a little while back for a tutorial. The translation to Java was fairly trivial, and to add a little excitement I even threw in a few generics. Yes, I'm aware of this line: tree.data …

Member Avatar for easternRAT
2
333
Member Avatar for ALT-F4

This small program simply allows the user to call two different methods passing along an interger value to each. One method will output numbers from zero utnil that integer value using iteration. The other method outputs numbers from zero to that integer using recursion.

Member Avatar for Dani
0
178
Member Avatar for Narue

Insertion sort, Selection sort, Bubble sort, Shell sort, Quicksort, and Heapsot. All optimized and ready to be experimented with. This is the framework for a Java application that speed tests various sorting algorithms (because there's usually little need to write one's own in production programs). Several popular algorithms were left …

Member Avatar for majestic0110
1
358
Member Avatar for Dani

A simplistic program to compute the volume of a cylinder when its radius and length are input via MyInput.class

0
188
Member Avatar for Dani

A simple demonstration of how MyInput.class can be used to input data from the keyboard. Computation is then done to compute the interest rate on a mortage.

Member Avatar for holmes008
0
198
Member Avatar for Dani
Member Avatar for p.bondam
0
200
Member Avatar for Dani

An example of method overloading. The program calls a function to get the square root of a number. The appropriate function (integer or double version) is executed.

2
208
Member Avatar for Dani

The JOptionPane class is used to give the CompMortgage.java program a front-end GUI interface. The class is divided into numerous functions.

Member Avatar for diamonddog
0
177
Member Avatar for Dani

A program similar to ComputeMortgage.java utilizing a mathematical formula and multiple methods to calculate a loan payment.

1
195
Member Avatar for Dani

A single class consisting of multiple methods is used to demonstrate the robustness of keyboard input in Java. A try-catch block is used. The program graphically prints out a square root table by using JTextArea, JScrollPane and JOptionPane.

Member Avatar for Ghost
0
228
Member Avatar for Dani

A demonstration of introductory object oriented programming. A class to define a circle object with radius, area, and perimeter parameters.

0
262
Member Avatar for Dani

This program consists of two functions in one class. It is the driver program for the CircleClass.java file.

0
192
Member Avatar for Dani

A program similar to CircleClass.java which defines a rectangle object. ClientProgram.java is the driver program for the Rectangle.java file.

0
2K
Member Avatar for Dani

Two classes which aim to demonstrate private and public members of a class. A static variable is used as an accumulator to keep track of the number of class objects which are created.

Member Avatar for tunstar
0
253
Member Avatar for Dani

A program combining a switch statement with static variables in a class. Based on the switch statement, a class object is dynamically created.

0
201
Member Avatar for Phaelax

Nothing fancy, but I know many new programmers are often confused about recursion. Recursion simply is when a method calls itself. What MyTree does is it adds nodes to the root node, then that root node can be used to create a JTree. The populate() method reads in a list …

0
180
Member Avatar for johnroach1985
Member Avatar for Banderson

Here is a code to sort numbers instead of strings using the BubbleSort method. The difference here is you don't use compareTo() for numbers as you do with strings.

Member Avatar for alpe gulay
0
166

The End.