search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
3.2k views
asked Guru 24.6k points 29 51 79

1 Answer

0 votes
 public class StringReverseDemo
 {
public static void main(String args[])
{
 
String a ="MALAYALAM";
 
for(int i=0;i<=a.length()-1;i++)
{
System.out.print(a.charAt(i));
}
System.out.println("");
for(int i = a.length()-1; i >= 0; --i)
{
 
System.out.print(a.charAt(i)); 
}
}
 }
answered Geek 15.3k points 14 39 60

Related questions

0 votes
1 answer 1.5K views
0 votes
1 answer 487 views
0 votes
1 answer 61 views
0 votes
1 answer 39 views
0 votes
1 answer 49 views
49 views
1 2 1 3 2 1 4 3 2 1 4 3 2 1 3 2 1 2 1 1
asked keem Expert 13.2k points 26 40 57
...