You are an administrator at a football club who must categorize already played games ... Why is my code not working?
My code works. But not with the input true, 2, 1. What do I have to do so that all tests run? Here is my code: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); boolean isSuspended = read.nextBoolean(); int ourScore = read.nextInt(); int theirScore = read.nextInt(); if (ourScore > theirScore) { System.out.println("Won"); } else if (isSuspended) { System.out.println("Suspended"); } else if (ourScore < theirScore) { System.out.println("Lost"); } else { System.out.println("Draw"); } } } Thank you.