0
A program to reverse string "Malayalam"?
4 ответов
+ 3
public class Reverse{
public static void main (String[] args){
StringBuilder string = new StringBuilder("Malayalam");
System.out.println(string.reverse()) ;
} }
+ 1
public class Reverse{
public static void main(String[] args){
String str = "Malayalam";
String reversedStr = "";
for(int i=str.length()-1; i>=0; i--){
reversedStr += str.charAt(i);
}
System.out.println(reversedStr);
}
}
and lol it is the same string when it is reversed xD
0
Public class {
public static void main( string[ ] args) {
strigBuilder("Malayalam") ;
system.out.printIn(string.reverse
()) ;
}
}
Java coding
💯
- 2
Just print it out!