Java console program

前端 未结 6 1842
花落未央
花落未央 2021-02-01 15:30

I was wondering how to make a Java console program. I use Eclipse as IDE. Looking for something similar to C#\'s version of a console program.

Tried Google but only foun

6条回答
  •  温柔的废话
    2021-02-01 16:07

    You can run a "console program" inside Eclipse.

    Given a simple program, e.g.

    public static void main (String[] args) {
        System.out.println("hello world");
    }
    

    Open the Eclipse console (Window -> Show View -> Console), and run this program. You should see hello world in the console.

提交回复
热议问题