My friend sent me this piece of code and it works, but I can't understand what the "ss" means? Can anyone help me out? Thanks.
public static void main(String[] args)
{
String sentence;
int index=1;
String[] words;
System.out.print("Please enter a sentence: ");
sentence = EasyIn.getString();
words = sentence.split(" ");
for(String ss : words )
{
System.out.println("Word "+index+ " is "+ ss);
if(ss.matches("[a-zA-Z]+"))
{
System.out.println("Word "+ss+" is a good word");
System.out.print("\n");
}
else
{
System.out.println("Word "+ss+" is a bad word");
System.out.print("\n");
}
index++;
}
}