Programmeren in Java/In- & uitvoer: verschil tussen versies
Verwijderde inhoud Toegevoegde inhoud
Modified the code to make it work |
|||
Regel 20:
\<source lang=java>
import java.util.Scanner;
public class Invoer {
public static void main(String[] args)
int getal;
System.out.println("Typ een getal");
Scanner sc = new Scanner(System.in);
getal = sc.nextInt();
System.out.println("Het ingevoerde getal is: " + getal);
}
}</source>
}}
|