Because this may cause problems, we updated the solution to run using the most common hardware and software tools available to users in December 2014. JDK / SDK / JRE / Netbeans followed by classes, template library compiler, editor and debugger are free.
Netbeans IDE 0.2, JDK 8, operating system is win 8.1 (apology), browser is Chrome (double apology) - GUI-based IDE designed to help the UNIX-cmd-line OG handle ZERO COST - and IDE) should always be free. Via Tapper 7 for everyone
Integer values can not represent scores. In Java, integer division is truncated to 0. For example, 6/4 is 1, 6 / (- 4) is -1. A common mistake is to forget to be 0 with nonzero integer division. To obtain decimal results, one of the operands must be a floating point type. In expressions containing text, this can be done by adding a decimal point like 6.0 / 4, so that the floating point value is 1.5. Additionally, if you divide an integer by zero, you get an error called ArithmeticException. As the name implies, exceptions are unexpected. Java provides a way to communicate to the computer
Java provides a char variable to represent and manipulate characters. This type is an integer type and can be mixed with other integer types. Each character is stored in memory in 2 bytes. This size is sufficient to store the integer value 0 to 65535 as a different character code or as a nonnegative integer called Unicode. Since Unicode is intended to represent not only a specific alphabet but also all alphabets in the world, it uses more storage space per character than the conventional general character encoding.
An 8 - bit value called a byte can represent 256 different values. Java supports five full numeric types. The char type is normally used to represent a 16-bit symbolic character named Unicode, but it can also be interpreted as an integer. As we will see below, the result of combining a char value with another value is never a char type. A char value is first converted to one of other numeric types. These types are summarized in the table below. Text An integer value is represented by a series of digits, possibly preceded by a minus sign. Integer literals are either int or long. You must assign them to small integer types of short and byte using explicit conversion of int literals (called casts) (see Section 2.10.2, "Type conversion" on page 21). Integer literals can be expressed in hexadecimal notation of 10 (decimal), 8 (octal), and 16 (hexadecimal).