Java | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Java

Java input is L2016103110102 what you need to do is append string of hello world after the input and print it out

12th May 2018, 11:22 AM
Blessing
1 Antwort
+ 5
import java.util.Scanner; public class program {public static void main(String[] args {Scanner sc = new Scanner (System.in()); String input = sc.nextLine: if (input = "L2016103110102"){System.out.println(input+"hello world");} } } //#FAIL
12th May 2018, 11:30 AM
Ibaadi Jaya
Ibaadi Jaya - avatar