0

Java

Please who understands this code... Am just a newbie. import java.util.Scanner; public class Methodtest { public static void main(String[] args) { Scanner input = new Scanner (System.in); Samuel(); String name = input.nextLine(); System.out.printf("Welcome %s\n", name); Motocycle(); String response = input.nextLine(); } public static void Samuel(){ System.out.println("What is your name: "); } public static void Motocycle(){ System.out.println("\nWhat do you feel about Motocycles?: "); } }

19th Apr 2018, 4:34 PM
Samuel Obadina
Samuel Obadina - avatar
1 Respuesta