We are giving a List of Java Programs which are useful for Beginners and Advanced Java Programmers to sharpen their algorithm skills. These Java programs are often asked in interviews in part by part to test the problem-solving skills of students and experienced job seekers. These programs are also part of your Computer Lab programs. The solutions to the problems are also given in an easy way. Just learn the logic and remember only the logic to become a good programmer in future. Do not just copy-paste for timepass.
SNO | Program |
---|---|
1. | Get Random Element of an Array or ArrayList This program finds a random element at a random index of an Array or ArrayList in Java. |
2. |
Find ASCII Value of a Character in Java This program finds the Numeric value or ASCII value of a Character. |
3. |
Find ASCII Value of a String in Java This program finds the ASCII value of String by summing the individual ASCII values of all characters of the String. |
4. |
Shuffle Elements in Array or ArrayList This program randomizes the elements in Array or ArrayList in Java. Each element is placed at random index positions by the time program logic ends. |
5. |
Convert a Decimal Number to Binary, Octal and Hexadecimal Format This program converts a number in Decimal System to a Number in Binary System, Octal System and Hexadecimal Number system. |