Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java konsoleneingabe

import java.util.Scanner; //wir benötigen diese Libary

Scanner sc = new Scanner(System.in); //Scanner wird angelegt und als sc bezeichnet

String input = sc.nextLine(); //Scanner liest eine Zeile als String ein

int input = sc.nextInt(); //Scanner liest int-Wert ein
sc.nextLine();

String input = sc.next(); //um nur ein Zeichen einzulesen
sc.nextLine();
Comment

PREVIOUS NEXT
Code Example
Java :: extended window style values in java 
Java :: import classes from another project java 
Java :: intList 
Java :: media style dependency androidx 
Java :: gradle use local path 
Java :: android studio call on a string 
Java :: call method without creating object java 
Java :: how to display same statement multiple times in java 
Java :: JDA message 
Java :: java jackson optional 
Java :: Java Method Overloading by changing the data type of parameters 
Java :: JAVA CHAR TO keyevents 
Java :: difido 
Java :: java run multiple cmd commands 
Java :: Share Icon/Button 
Java :: how to save rich text format in database using java 
Java :: check if there is connexion android studio 
Java :: java program to print hexadecimal to decimal number conversion 
Java :: spring down load 
Java :: int to byte calculator 
Java :: Java Create an OutputStreamWriter 
Java :: java find view by id 
Java :: Java Access Specifier in Overriding 
Java :: bakht k takht sy yaklakht utara hwa shaks tuny dekha hai kbi jeet k hara hwa shaks in urdu 
Java :: java set custom property cmd 
Java :: java matrix return a weird string 
Java :: sudo visudo quit without saving 
Java :: kivy menu bar 
Java :: how to add a command to a button 
Java :: convert zipfile to bytebuffer 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =