// import statements here /* an introduction comment which should include: Your name The class/section The assignment number The date of submission A description of the program/class */ public class Sample Class { // your instance data and any constants -- all of these should be commented as to // their role in the class unless they are obvious /* main/constructor */ /* the main method or constructor(s) should always come first depending on whether this is a class with main or constructors */ /* all other methods */ // if you have other classes, you can place them in separate files or nest them inside of this class // if nested, they can appear either at the bottom of this class, or between this class' instance data and main/constructor } Skeleton of a method: // explain what this method does including the role of the parameters public static void thisMethod(int a, int b) { int c; // comment what each local variable does unless its use is obvious while(a < b) { // comment your logic - what does this loop do? why is it doing it? a++; c++; if(a==c) c*=2; // especially comment the use of selection statements foo(a,c); // and what the role of a method call is } }