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 52 81

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 16 41 63

Related questions

0 votes
1 answer 1.5K views
0 votes
1 answer 493 views
0 votes
1 answer 61 views
0 votes
1 answer 40 views
0 votes
1 answer 54 views
54 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 27 40 59
...