This repository is a project of practicing atleast 50 Java programming exercises covering various fundamental concepts.
- Print 'Hello, World!' to the console.
- Swap two numbers without using a temporary variable.
- Convert temperature from Celsius to Fahrenheit.
- Find the largest of three numbers.
- Print the ASCII value of a character entered by the user.
- Check if a number is even or odd.
- Find the largest of three numbers using if-else.
- Check if a year is a leap year.
- Write a calculator program using switch-case.
- Check if a character is a vowel or consonant.
- Find the factorial of a number.
- Generate the Fibonacci series up to n terms.
- Reverse a given number using a loop.
- Find the sum of digits of a number.
- Print all prime numbers between 1 and 100.
- Find the largest element in an array.
- Sort an array in ascending order.
- Search for an element in an array (linear search).
- Reverse an array.
- Find the second largest number in an array.
- Check if a string is a palindrome.
- Count the number of vowels in a string.
- Find the frequency of characters in a string.
- Check if two strings are anagrams.
- Find the longest word in a sentence.
- Write a method to check if a number is prime.
- Write a method that returns the factorial of a number.
- Write a method that calculates the GCD of two numbers.
- Write a method to reverse a string.
- Write a method to check if a number is palindrome.