blob: d3b6cd9428f12a6a57f368a831dc98ad61bef959 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
\subsection{Introduction}
\begin{enumerate}
\item Compilen: \\ javac main.java
\item Ausführen: \\ java main < sample.in
\item Einlesen: \\
Scanner in = new Scanner(System.in); \\
String line = in.nextLine(); (reads the next line of the input)\\
int num = in.nextInt(); (reads the next token of the input as an int)\\
double num2 = in.nextDouble(); (reads the next token of the input as a double)\\
usw. \dot (think on your own what comes next) \\
\ende{enumerate}
|