/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication6; /** * * @author Mark */ public class NewClass { // int comment int x = 1; int y = 2; // double comment double d = 1.2; // String comment String str = "yes"; // boolean comment boolean z = false; public void method1() { int p = 5; double q = 6.7; method2(q, p); } /** * * Something should really go here. * */ private void method2(double q, int p) { x = x + 1; y = y + x; System.out.println("ouchy!"); } public void setX(int x) { th } }