String
String
reverseword=reverseword+word.charAt(j);
}
reverseString=reverseString+reverseword+"
";
System.out.println(reverseString);
}
}
for(char ch:charArray) {
if(ch !=' ') {
boolean check = lhSet.contains(ch);
if(!check) {
lhSet.add(ch);
}
}
}
System.out.println(lhSet);
}
}
public class Demo {
public static void main(String[]args) {