I\'m doing an school exercise and I can\'t figure how to do one thing.
For what I\'ve read, Scanner is not the best way but since the teacher only uses Scanner this must be
Here's the typical readline idiom, applied to your code:
String[] text = new String[11]
Scanner sc = new Scanner(System.in);
int i = 0;
String line;
System.out.println("Please insert text:");
while (!(line = sc.nextLine()).equals("")){
text[i] = line;
i++;
}