Hallo, kann mir bitte jemand sagen was ich hier falsch mache?
package de.codegym.task.task07.task0722;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Das Ende
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String>liste = new ArrayList<String>();
boolean con = true;
while(con){
String s = reader.readLine();
if(s=="ende"){
con =false;
return;
}
liste.add(s);
}
for(int i = 0; i < liste.size(); i++){
System.out.println(liste.get(i));
}
}
}