- Given a list of integers, find out all the even numbers exist in the list
- Given a list of integers, find out all the numbers starting with 1
- How to find duplicate elements in a given integers list in java
- Given a list of integers, find the maximum/minimun value element present in it
- Given a String, find the first non-repeated character in it
- Given a String, find the first repeated character in it
- Given a list of integers, sort all the values present in it
- Given a list of integers, sort all the values present in it in descending order
- Count Characters in the String
"Java is awesome"
J -> 1
a -> 3
v -> 1
i ->1
s -> 2
w -> 1
e -> 2
o -> 1
- Reverse the last half
Input: Apple -> length = 5 -> odd -> last half = ple -> reverse = elp
output: Apelp
Input: Bank -> length = 4 -> even -> last half = nk -> reverse = kn
output: Bakn
- Print unique numbers in the list/array
Input: 1, 2, 3, 2, 4, 1, 4
Output: 3 (becoz 3 occurred only one time)
Input: 1, 2, 3, 4, 4, 3
Output: 1 2 (becoz 1 and 2 occurred only one time)
- Caps Vowels
Input: porkodi Output: pOrkOdi
(make vowels to the captails letter)
- find first repeated char in a string
"Java is awesome"
J -> 1
a -> 3
output: a
"Im from chennai"
output : i
- find first non repeated char in a string
"Java is awesome"
output: J
"Im from chennai"
output : f