Brak pomysłów. Niby proste.
package pl.codegym.task.task04.task0423;
/*
Strategia ochroniarzy
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String imie = reader.readLine();
String sWiek = reader.readLine();
int wiek = Integer.parseInt(sWiek);
if(wiek > 20){
System.out.print("Wystarczy,że masz 18");
}
}
}