exception java.io.IOException is never thrown in body of corresponding try statement
catch (IOException e){
^
package de.codegym.task.task15.task1515;
import java.util.*;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Der Zugriffsmodifikator static: Teil 2
*/
public class Solution {
public static int A;
public static int B;
static{
Scanner scan = new Scanner(System.in);
try{
A = scan.nextInt();
B = scan.nextInt();
}
catch (IOException e){
throw new IOException("irgendwas");
}
finally{
scan.close();
}
}
public static final int MIN = min(A, B);
public static void main(String[] args) {
System.out.println(MIN);
}
public static int min(int a, int b) {
return a < b ? a : b;
}
}