# Java Programming Code Examples

## Java > Swing Code Examples

### Inner windows

Program Print Fibonacci Series in a Range -
Fibonacci series is a series of numbers where the current number is the sum of previous 2 terms. For Example: 0, 1, 1, 2, 3, 5, 8, 13, 21,... Here c is the current term, b is the n-1th term

C++ Codings Simple Class Template Array -
Templates are a feature of the C++ Language that allows functions and classes to "operate" with generic types. A class template provides a "specification" for generating classes based

The C++ Language Interchange Numbers -
C++ sample program ask to the user to enter two number (value of A and B) to interchange and "display the result" on the screen: In C++, to "interchange the numbers", enter the two

C Program Calculates Compound Interest -
C Programming code input principle amount. Store it in some variable say principle. Input time in some variable say time. Input rate in some variable say rate. Calculate compound

The Mind Reader game C Coding example -
Choose a two digit number and add digits. Subtract the sum from original number. See the symbol opposit to the number you got. Press any key The MIND READER will display

C++ Sample Code Implement Bucket Sort -
Divide the range into equal parts and assign a 'bucket' to each part. Split the data and insert them into the Corresponding bucket by using insertion sort. 'Merge' all the buckets into one

Undirected Graph is Connected Using DFS -
A "Recursive Function" to print 'DFS' starting from v. Returns reverse ('or transpose') of this graph. Add edge to connect v and w. Check if Graph is Connected and display 'The Graph is

C++ Language Find Largest of 2 Numbers -
To find the largest number of the 2 numbers in C++, enter 2 numbers and checking which one is larger to "Display the Largest" on the output screen as shown here in the program