You are viewing a single comment's thread. Return to all comments →
I tried doing it that way but it went wrong, so I had to take the:
Scanner scan = new Scanner(System.in); B = scan.nextInt(); H = scan.nextInt();
out of the block.
Why is it?
Seems like cookies are disabled on this browser, please enable them to open this website
Java Static Initializer Block
You are viewing a single comment's thread. Return to all comments →
I tried doing it that way but it went wrong, so I had to take the:
out of the block.
Why is it?