import java.io.*;
public class Reverse{
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
String x;
int i;
System.out.print("\nMasukan kata yang ingin dibalik : ");
x = br.readLine();
System.out.print("Hasilnya adalah : ");
for(i=x.length()-1; i>=0; i--){
System.out.print(x.charAt(i));
}
System.out.print("\n");
}
}
Rabu, 07 Juli 2010
program membalik kata.java
Diposting oleh
Teyka blog
di
08.55
Kirimkan Ini lewat Email
BlogThis!
Bagikan ke X
Berbagi ke Facebook
Pages
Blog Archive
Mengenai Saya
You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "
0 komentar:
Posting Komentar