I see some issues in your code, such as the lack of proper formatting and the use of functions not available in Java.
In Java,
bool is the the proper keyword for a boolean, however in C++ that is correct. The proper keyword to initialize a boolean in Java happens to be
boolean
Cout is not a Java function, it happens to be a C++ command utilized to output to console.
Java uses the
System.out library to output(hence the "out").
Cin follows the previous issue of being a C++ function; Java utilizes the
java.util.Scanner library for console input.
There also exists an issue where your main method
public static void main(String[] args)
should encapsulate the code you have written out, rather than go below the main method
AND the class declaration.