Questions for Practice 3
Java Practice Questions
- Write a program in Java to create and print your name using the method.
- Write a program in Java to print even numbers between intervals using methods.
- Write a program in Java that find whether the number is prime or not using function.
- Write a program in Java to reverse a String using a function.
- Write a program in Java to calculate the power of a certain number.
For e.g., 5^3=125
- Write a program in Java to store 10 student names and print all using array.
- Write a program in Java to join two arrays.
- Write a program in Java to check array contains a given value or not.