Java

JAVA FUNdamentals

Blog Posts

Java Coding Questions 

2. How to swap two numbers without using a third variable?

3.Java Program to check if a vowel is present in the string?

First Approach: 

Second Approach: 

Use Regular expression:
return input.toLowerCase().matches(".*[aeiou].*");

4. Check if given number is Prime?

5. Fibonacci Series

6. Check Palindrome String

7. Remove white spaces from String

8. How to remove leading and trailing white spaces

9. Sorting an Array in Java