public class Hovedprogram { public static void main(String[] args){ String storst = Storst.storste("Hei,", "På", "Deeg"); System.out.println(storst); } } class Storst{ public static String storste(String en, String to, String tre){ if (en.compareTo(to)>0){ //variablen en er større enn to if (en.compareTo(tre)>0){ return en; }else{ return tre; // denne glemte jeg i gruppetimen } }else{ if (tre.compareTo(to)> 0){ //Siden tre mindre enn to, er to størst return tre; } } return tre; // Feil } }