# Java Programming Code Examples

## Java > Swing Code Examples

### Adding Items and Removing Itesm from JList

C++ Prim's Algorithm Finds the Minimum -
Find the minimum spanning tree of the given graph using Prims algorihtm. This algorithm is a "greedy algorithm" that finds a minimum spanning tree for a "Connected Undirected"

Program to implement a boolean function -
Color at stars position. Start in upper corner. Gives a message to user. For checking that a particular no. Decides whether output is 1 or 0. Normal mux implementation. Decides...

C++ Finds All Roots of Quadratic Equation -
Program accepts "coefficients" of a quadratic equation from the user and displays the roots (both real and complex roots depending upon the discriminant). 'ax^2+bx+c = 0' (where a, b,

C++ Two-Dimension Transformations In -
This C++ Program code example deals with all two-d transformation such as translation, 'scaling', 'rotation', 'reflection', 'shearing' in homogeneous coordinates. Transformation

C++ For Loop is Similar to While Loop but -
Control statement itself has three parts: for ( "initialization"; test condition; run every time command ). "Initialization" part is performed only once at for loop start. We can initialize a

Find the First Capital Letter in String using -
C program using Recursion and finds the first 'capital letter' that exists in a string. We have included 'ctype.h' in order to make use of "int isupper(char); " function that's defined inside

Find GCD of Given Numbers use Recursion -
C Program Code to using Recursion, finds the GCD of the two numbers entered by the user. The user enters 2 numbers by using a space in between them or by pressing enter after each

Multiline Comments in C++ programming -
To write a "Multiline Comment" you have to write "/*" at the start of the Comment. After this you can write as many number of lines of description. When you are done with writing