CORE JAVA PROGRAMMING - Topics

CORE JAVA PROGRAMMING - Practice Problems

CORE JAVA PROGRAMMING - Practice Problems

1. Write a Java method to find the smallest number among three numbers.

Tutorial

2. Write a Java method to compute the average of three numbers.

Tutorial

3. Write a Java method to display the middle character of a string. Note: a) If the length of the string is odd there will be two middle characters. b) If the length of the string is even there will be one middle character.

Tutorial

4. Write a Java method to count all the words in a string.

Tutorial

5. Write a Java method to compute the future investment value at a given interest rate for a specified number of years.

Tutorial

6. Write a Java method to print characters between two characters (i.e. A to P).

Tutorial

7. Write a Java method to check whether a string is a valid password.

Tutorial

8. Write a Java method to display the current date and time.

Tutorial

9. Write a Java method to find all twin prime numbers less than 100.

Tutorial

10. Write a Java method to count the number of digits in an integer with the value 2. The integer may be assumed to be non-negative.

Tutorial

11. Write a Java method that accepts three integers and checks whether they are consecutive or not. Returns true or false.

Tutorial

12. Write a Java method that accepts three integers and returns true if one is the middle point between the other two integers, otherwise false

Tutorial

13. Write a Java method that checks whether all the characters in a given string are vowels (a, e,i,o,u) or not. Return true if each character in the string is a vowel, otherwise return false.

Tutorial

Expand Your Horizons with Our Free YouTube Courses

Our comprehensive YouTube courses cover a wide range of computer science and IT subjects. Each course is carefully crafted to provide you with a solid foundation and a deeper understanding of the topic. Explore our playlist of free courses and learn at your own pace. Stay ahead of the curve and boost your knowledge with our engaging video lectures.

Java Course

Learn Now

Data Structures Course

Learn Now

DBMS Course

Learn Now