Java Programming Code Examples
Java > Learning Code Examples
Switch Statements
Implement Interpolation Search algorithm -
Implement 'Binary search' using interpolation approach. The Time complexity is "O(log(n))". Implement the Binary Search on sorted array. Then Calculate mid value using 'interpolation'
C Circular Queue implementation through -
C Programming language code for circular queue implementation through Array. Add element to Circular Queue. Delete element from the Circular Queue. Do you want to do
C++ Table Show the legal values for Mode -
Open a text file for reading. Create a text file for writing. Append to a text file and Open a binary file for reading. Create a binary file for writing. Append to a binary file. Open a text
Using Virtual Functions in C++ Language -
See in this case the output is Woof, which is what we expect. What happens in this case? Since we marked the function animalSound() as virtual, the call to the function is resolved
Mine Sweeper Game C Programming code -
Graphic program about Mine Sweeper. Put mines in random blocks. Put mines value in other blocks. Sets view port to the play area only. Puts F tag in Array. Determine current
C Codes Displays Largest Element of Array -
This C Program takes n number of elements from user and stores it in array arr[]. To find the largest element, the first two elements of array are checked and largest of these two...
C++ Programming Encrypt & Decrypt File -
To encrypt & decrypt file content in C++, you have to enter the file name with extension to encrypt & decrypt the content present inside the file. Now open that file using the function
Find the Largest Two Numbers in an Array -
C Program code calculates the largest of two numbers in a given Array. First it accepts an array, then compares the elements and finds which is the largest two element in a given...