Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to write a java program for printing child or adult in java

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");
        }
Comment

PREVIOUS NEXT
Code Example
Java :: Sling authentication handler example 
Java :: Java TestNG Data provider Provider with multiple variables 
Java :: android studio null 
Java :: 111111000 
Java :: usaco 2018 january contest 
Java :: Small Change 
Java :: java setting logging with rotation logback 
Java :: android java random fragment on create 
Java :: how to declare and allocate memory to array in java 
Java :: import claim jwt 
Java :: Spring Boot user registration and login REST API 
Java :: docker how to pass params to spring boot application 
Java :: read java reader 
Java :: trivers json node as node type2 
Java :: java swing place objects vertically 
Java :: choose image java 
Java :: data.sql not loading in springboot 
Java :: binary search tree 
Java :: math.round java 
Java :: okhttp3, android okhttp 
Java :: java check if instance of subclass 
Java :: java jcombobox selected item changed 
Java :: result set methods 
Java :: void setup 
Java :: Android java toArray to String array 
Java :: array srting line by line in textview android 
Sql :: mysql disable foreign key checks 
Sql :: mysql current running queries 
Sql :: hibernate keeps deleting tables 
Sql :: cambiar nombre tabla mysql 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =