Java For Beginners: Get From Zero to Object-Oriented Programming by Barzan Lucas

Java For Beginners: Get From Zero to Object-Oriented Programming by Barzan Lucas

Author:Barzan, Lucas [Barzan, Lucas]
Language: eng
Format: azw3, epub
Published: 2020-04-24T16:00:00+00:00


System . out . println( "In what year were you born?" );

int age = 2017 - scan. nextInt();

if ( age >= 16 ) {

System . out . println( name + ", you are " + age + " and you can drive in the US" );

} else {

System . out . println( name + ", you are " + age + " and you can not drive in the US" );

}

}

}

7)

import java. util. Scanner ;

public class Main {

public static void main( String [] args) {

Scanner scan = new Scanner ( System . in );

System . out . println( "Enter a letter:" );

String letter = scan. next ();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.