class Rev
{
char a[];
char i=3;
void str()
{
for(i='A';i<'D';i++)
{
a[i]='i';
}
}
void show()
{
for(int i='A';i<'D';i++)
{
System.out.print(a[i]);
}
}
Void reversStr()
{
for(i='A';i<'D';i++)
{
System.out.print(a[i]);
}
}
}
class Revers
{
public static void main(String[] args)
{
Rev a1=new Rev();
a1.str();
a1.show();
a1.reversStr();
}
}
ajay_tabbu 14 Junior Poster in Training
masijade 1,351 Industrious Poster Team Colleague Featured Poster
ajay_tabbu 14 Junior Poster in Training
ajay_tabbu 14 Junior Poster in Training
iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.