Developer community
0 votes
3.2k views
asked by Guru (24.6k points) 29 51 77 | 3.2k views

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 by Geek (15.3k points) 15 40 60

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked by sara Guru (24.6k points) 29 51 77 | 65 views
0 votes
1 answer
0 votes
1 answer
asked by keem Expert (13.2k points) 27 40 58 | 49 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users