Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class cow // did not capitalise class name
- {
- public String spot_color; // no camelcase; I thought underscores looked cooler
- public int age; // all public fields
- // I didn't comment anything! =D These comments just explain my muckups!
- public String get_spot_color()
- {
- return spot_color;
- }
- public void set_spot_color(String sc)
- {
- spot_color = sc;
- }
- public static void main(String [] args) // I thought [] looked better centred
- {
- }
- }
Add Comment
Please, Sign In to add comment