📜  如何在java代码示例中编写用于打印儿童或成人的java程序

📅  最后修改于: 2022-03-11 14:52:19.749000             🧑  作者: Mango

代码示例1
Byte age = /*Input the persons age here*/ 39;
        if (age>=18){
            System.out.println(true+" "+",Your an adult");
        }
        else {
            System.out.println(true+" "+",Your an child");
        }