What's the fastest way to draw a Hello World in Java

后端 未结 3 1928
别跟我提以往
别跟我提以往 2021-01-16 02:38

What\'s the fastest way to draw a Hello World on the screen using a GUI in Java:

1- by using the minimum number of classes.

2- with the leas

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 02:57

    this is the fastest graphical Hello world i could get.

    public class HelloWorld{
        public static void main(String[] args) {
            javax.swing.JOptionPane.showMessageDialog(null, "Hello World");
        }
    }
    

提交回复
热议问题