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.
Tutorial2. Write a Java method to compute the average of three numbers.
Tutorial3. 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.
Tutorial4. Write a Java method to count all the words in a string.
Tutorial5. Write a Java method to compute the future investment value at a given interest rate for a specified number of years.
Tutorial6. Write a Java method to print characters between two characters (i.e. A to P).
Tutorial7. Write a Java method to check whether a string is a valid password.
Tutorial8. Write a Java method to display the current date and time.
Tutorial9. Write a Java method to find all twin prime numbers less than 100.
Tutorial10. 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.
Tutorial11. Write a Java method that accepts three integers and checks whether they are consecutive or not. Returns true or false.
Tutorial12. Write a Java method that accepts three integers and returns true if one is the middle point between the other two integers, otherwise false
Tutorial13. 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.
TutorialExpand 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.