Started jdk-Command line arg problem help pls!!

cant compile this source code to execute it.the program is for mailinglabels but

with the ability to change name.pls look any help well appreciated:

//This program prints "Chris Gardner, 190 Sprace Road, Glasgow G773DT"

//Filename: MailingLabel.java

public class MailingLabel

{

public static void main(String [] args)

{

System.out.println("args[0] args[1]");

System.out.println("190 Sprace Road");

System.out.println("Glasgow G773DT");

What am I doing wrong.THx

[537 byte] By [joeybishop1uka] at [2007-10-2 6:35:12]
# 1

You didn't close the main method and class definition, that's why it doesn't compile:public class Mail {

public static void main(String[] args) {

System.out.println(args[0] + " " + args[1]);

System.out.println("190 Sprace Road");

System.out.println("Glasgow G773DT");

}

}

PhHeina at 2007-7-16 13:37:28 > top of Java-index,Java Essentials,New To Java...