(显示五条消息)编写程序,显示Welcome to Java 五次。
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dome1_2;
/**
*
* @author Administrator
*/
public class Dome1_2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
for(int i = 0;i < 5;i++){
System.out.println("Welcome to Java");
}
}
}