package mocktest; public class StringFlip { public String reverse(String x) { String result = ""; for (int i = 0; i < lenght(); i++) { result = x.charAt(i) + result; } return result; } public static void main(String args[]) { StringFlip f = new StringFlip(); System.out.println(f.reverse ("Hello")); }}
I have an error under the word lenght.. how can i get rid of it? thanks