Java substrings
I'm in my AP Computer Science class and we're supposed to make a program where you input a name, first and last, and the program will pick the name apart and display the last name then first. Nobody in our class has gained any progress in the day and a half we've been working on it and our teacher isn't giving us any help. Can I get some hints?
import APCS.Keyboard;
class StringLab
{
publicstaticvoid main(String[]args)
{
//
// define characters here
//
String str1 ="";
//
// enter your name section
//
System.out.println("Enter your name:"+str1+"");
str1 = Keyboard.readString();
System.out.println("You entered:"+str1+"");
//
// substring section to reverse name
//
}
}
That's all I have so far.

