顺序结构讲解

定义:按顺序执行

package com.wuming.struct;

public class ShunXuDemo {
    public static void main(String[] args) {
        System.out.println("hello1");
        System.out.println("hello2");
        System.out.println("hello3");
        System.out.println("hello4");
        System.out.println("hello5");
    }
}

hello1
hello2
hello3
hello4
hello5

猜你喜欢

转载自blog.csdn.net/wanggang182007/article/details/121031534