This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class AutoCalc { | |
/* It's conventional that field names are in camelCase, so I changed that. | |
* | |
* The private keyword means only this class can look at these values. Here, | |
* declaring the field as 'static' means that it's a class field, rather than | |
* an instance field. The two x and y values are specific to one particular |