View Single Post
  #2 (permalink)  
Old 11-15-2007, 07:10 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
public class MG2 { String firstName; String lastName; public MG2() { firstName = "Nick"; lastName = "Johnson"; } public static void main(String[] args) { // <--- errant semi-colon MG2 app = new MG2(); System.out.println("Hello, " + app.firstName + " " + app.lastName); } }
Reply With Quote