import java.util.*; import java.io.*; public class ballot { public static void main(String[] args) { try { Scanner in = new Scanner(new File("ballot.in")); int parteienanzahl = in.nextInt(); int testenanzahl = in.nextInt(); in.nextLine(); String[] parteien = new String[parteienanzahl]; String[] vergleiche = new String[testenanzahl]; float[] parteienproz = new float[parteienanzahl]; for (int i=0; i")||array[j].equalsIgnoreCase("<=")||array[j].equalsIgnoreCase(">=")||array[j].equalsIgnoreCase("=")) arraystellevergleich = j; for (int k=0;k")) if (wert1>wert2) correct = true; if (array[arraystellevergleich].equalsIgnoreCase("<=")) if (wert1<=wert2) correct = true; if (array[arraystellevergleich].equalsIgnoreCase(">=")) if (wert1>=wert2) correct = true; if (array[arraystellevergleich].equalsIgnoreCase("=")) if (wert1==wert2) correct = true; System.out.print("Guess #"+(i+1)+" was "); if (correct) System.out.println("correct."); else System.out.println("incorrect."); wert1 = 0; } } catch (IOException e) {} } }