C and C++ Programming Resources

Custom Search

Java

Demonstration of Linked list in java

Posted on October 31st, 2008 0 Comments

Demonstration of Linked list in java
This is a very simple demonstration of linked list in java programming language. Very nice and well commented java source code for beginners. User can “get” and “set” the list items as well as traverse through “previous” and “next ” items. This java program can create a linked list using one object or an array of...
Read More | Make a Comment

Stack Implementation in Java

Posted on October 30th, 2008 0 Comments

Stack Implementation in Java
An object of type IntStack is a stack of real numbers, with the standard stack operations push(int N), pop(), and isEmpty(). A makeEmpty() operation is also provided to remove all items from the stack. Internally, the stack is implemented as a linked list. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com...
Read More | Make a Comment

Stack implementation with array

Posted on September 28th, 2008 0 Comments

This java code basically implements stack functionality. It can Pop and Push an item in stack with the help of array. The item can only be an integer number and inernally the java program uses arrays to maintain items in stack. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * ...
Read More | Make a Comment

Photo

Posted on September 13th, 2008 0 Comments

A small java program to show photo on JPanel. User can select any image file from the hard drive and show on the frame. Image file can be jpg, gif, bmp or any other supported graphics file. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * ...
Read More | Make a Comment

PostFix expression evaluator – Java

Posted on September 9th, 2008 4 Comments

This program evaluates postfix expressions entered by the user. The expressions can use non-negative real nubmers and the operators +, -, *, /, and ^ (where ^ represents exponentiation). Numbers must begin with a digit. That is, you have to say 0.7 rather than just .7. The value of an expression might be given as infinity or NaN. A stack is used to evaluate...
Read More | Make a Comment

SystemErrorOwnsYou

Posted on September 9th, 2008 0 Comments

SystemErrorOwnsYou— This is a tool I created to put your freinds or enemies under Denial of service conditions- Dont worry… this tool will not have any long lasting effect, in-fact once you re-boot you computer it will be in the exact same state as it was before you ran the application. All it basically does (if you cant understand the source) is...
Read More | Make a Comment

Moving ball applet – Java

Posted on September 9th, 2008 0 Comments

An object of type MovingBall holds data about a “ball” that has a color, radius, position, speed, and direction. The ball is restricted to moving around inside a rectangle in the xy-plane. The ball can draw itself in a graphics context and will move when it is told to move. This class uses some trigonometry and vector math in its implementation. /******************************************************* *...
Read More | Make a Comment

Simulation of console-I/O program BirthdayProblemDemo

Posted on September 9th, 2008 0 Comments

Simulation of console-I/O program BirthdayProblemDemo, using ConsoleApplet as a basis. See the file ConsoleApplet.java for more information. David Eck eck@hws.edu /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code is made...
Read More | Make a Comment


Page 1 of 6123456