Skip to content

Instantly share code, notes, and snippets.

View pdpi's full-sized avatar

Pedro Pinheiro pdpi

View GitHub Profile
@pdpi
pdpi / AutoCalc.java
Created September 9, 2012 23:35 — forked from anonymous/AutoCalc.java
AutoCalc by joshellis625
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