- Hello World: Write a program that outputs "Hello, World!" to the console.
- Calculate Sum: Write a program that takes two numbers as input and outputs the sum of the numbers.
- FizzBuzz: Write a program that outputs numbers from 1 to 100. For multiples of 3, the program should output "Fizz" instead of the number, and for multiples of 5, it should output "Buzz". For numbers that are multiples of both 3 and 5, it should output "FizzBuzz".
- Reverse String: Write a program that takes a string as input and outputs the reverse of the string.
- Palindrome Checker: Write a program that takes a string as input and outputs whether the string is a palindrome or not.
- Factorial Calculator: Write a program that calculates the factorial of a number.
- Prime Number Checker: Write a program that takes a number as input and outputs whether the number is prime or not.
- Guess the Number Game: Write a program that generates a random number between 1 and 100, and then prompts the user to guess the number. The program should give feedback to the user on whether the guess is too high or too low, until the user correctly guesses the number.
- Temperature Converter: Write a program that converts temperature from Celsius to Fahrenheit and vice versa.
- Array Sum: Write a program that takes an array of numbers as input and outputs the sum of the numbers in the array.
-
Notifications
You must be signed in to change notification settings - Fork 0
thouravi/10-basic-java-exercises
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
10 Basic Java Exercises
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published