Compile and run this java program

后端 未结 5 578
离开以前
离开以前 2021-01-23 12:06

How do I compile and run the following programs:

Test1.java:

package A;

public class Test1
{
    public int a = 1;
}

Test2.java:

5条回答
  •  星月不相逢
    2021-01-23 12:48

    This isn't a direct answer to your question but you might want to start thinking about using an IDE (others suggested ant). I would recommend jcreator if you are just starting out or Eclipse if you want something good.

提交回复
热议问题