i wrote this code to reverce a word but its give me a error donno why:S i hope u can help me :)
import javax.swing.JOptionPane;
public class sentence {
private static void reverse (Sentence){
String sentence;
sentence s = new sentence();
sentence=("hello");
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(reverse(sentence));
}
}
thnq