package com.xz;

public class Test {
	
	public static void main(String[] args) {
		
		
		System.out.println("max length");
		
	}
	
	public void getRight(){
		
		String name="problem a";
		System.out.println(name.lastIndexOf("d"));
		
	}

	public void getLeft() {

		String name = "i have a problem b";
		System.out.println(name.lastIndexOf("o"));

	}

}

@@ -338,17 +338,17 @@
 Of(%22
-o
+a
 %22));%0A%0A%09%7D
 %0A%0A%7D%0A
@@ -343,12 +343,80 @@
 %22));%0A%0A%09%7D
+%0A%09%0A%09public String getName() %7B%0A%0A%09%09String name = %22%22;%0A%09%09return name;%0A%09%7D
 %0A%0A%7D%0A

Update Test.java