В идеи всё ок . а здесь что-то ругается
package com.javarush.task.task04.task0416;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Переходим дорогу вслепую
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sT = reader.readLine();
double t = Double.parseDouble(sT);
color(t);
}
public static void color (double t) {
int a = 0;
while (a<60) {
if (t<(a+3)) {
System.out.println("зелёный");
break;
}
else if (t<(a+4)) {
System.out.println("жёлтый");
break;
}
else if (t<(a+5)){
System.out.println("красный");
break;
}
a=a+5;
}
}
}