1 public class HelloWorld {
2 public static void main(String[] args) {
3 System.out.println("Hello, world!");
4 }
5 }
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Hello World</title>
6 </head>
7 <body>
8 <h1>It works!</h1>
9 </body>
10 </html>
1 $(function() {
2 alert("Hello, world!");
3 });
测试一下,