How can you reverse a strin?
everything is a bibliography for coding
What does LED stand for?
Light emitting diode
In the book Silver what is the dog’s name.
Silver
1 Times 1
1
Gh
Hi
How to get the matching characters in a string?
To get the matching characters in a string, the below steps are followed:
Code snippet:
HashMap<Character, Integer> mp = new HashMap<> ();
for (int j = 0; j<text.length (); j++) {
char ch = text.charAt(j);
if(mp.containsKey(ch)){
int cnt = mp.get(ch);
mp.put(ch, ++cnt);
}else{
mp.put(ch, 1);
}
}
Set<Character> charct = map.keySet();
for (Character ch: charct){
int c= mp.get(ch);
if(c>1){
System.out.println(ch+ " - " + c);
}
What measures voltage?
Multimeter
Who are the main characters?
Alec and Black
5 Times 5
25
Hbd
Ice
How to calculate the number of vowels and consonants in a string?
To calculate the number of vowels and consonants in a string, the below steps are followed:
Code snippet:
for (int k = 0; k < text.length(); k++) {
char c = text.charAt(k);
if (c == 'a' || c == 'e' || c == 'i' ||
c == 'o' || c == 'u')
owls += vowls
else
consonts += consonts
}
System.out.println("Vowel count is " + vowls);
System.out.println("Consonant count is: " + consonts);
How many volts go in a phone?
5V
How many men help Alec escape the island ?
5 men
12 Times 7
72
azad
Babe
Find the count for the occurrence of a particular character in a string.
To count the occurrence of a particular character in a string, the below steps are followed:
Code snippet:
for (int l=0; l<strng.length(); l++)
{
if ( strng.charAt(l)== searchedcharacter)
rslt ++;
}
System.out.println(rslt);
Who invented the foot pulley?
M.K. T.U. Just kidding!!!
Who got trapped in the blizzard? In Big Red
Ross Picket
69 Times 40
2760
xnt, z q d ,v d k k
You are well
How to compute the first character of a string that is not repeated?
To compute the first character of a string which is not repeated, the below steps are followed:
Code snippet:
Set<Character> repeated = new HashSet<>();
List<Character> nonRepeated = new ArrayList<>();
for (int m = 0; m < wrd.length(); m++) {
char l = wrd.charAt(m);
if (repeated.contains(l)) {
continue;
}
if (nonRepeated.contains(l)) {
nonRepeated.remove((Character) l);
repeated.add(l);
} else {
nonRepeated.add(l);
}
}
return nonRepeated.get(0);
If you are born on October 16 what sign of zodiac are you under?
Libra
Daily Double!!!
Danny Picket
78 times 3
234
h z l S z m x z
I am Tanya