I don´t understand what am it missing... if anyone could help me.
package com.codegym.task.task15.task1529;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Mastering the static block
*/
public class Solution {
public static void main(String[] args) {
}
static {
reset();
}
public static CanFly result;
public static void reset() {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String value = reader.readLine();
int i = Integer.parseInt(reader.readLine());
if (value.equals("helicopter")) { result = new Helicopter(i); }
else if (value.equals("plane")) { result = new Plane(i);
}
reader.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}