> Can someone please help me with JAVA programming?

Can someone please help me with JAVA programming?

Posted at: 2014-12-18 
public class Test {

public static void main(String args[]) {

String input = "Eastern Michigan University";

method(input);

}

private static void method(String input) {

int lastIndex = input.lastIndexOf(" ");

if(lastIndex != -1) {

System.out.println(input);

input = input.substring(0, lastIndex);

method(input);

} else {

System.out.println(input.toUpperCase());

System.out.println(input.length());

}

}

}

Write a Java program to:

a) Print the sub string “Eastern Michigan” from “Eastern Michigan University” which is user input.

b) Then again print the sub string “Eastern” from “Eastern Michigan”

c) Then print the uppercase of the final string “Eastern”.

d) Finally find the length of the final string as well.