diff options
| author | kittobi1992 <kittobi1992@users.noreply.github.com> | 2014-11-25 10:07:15 +0100 |
|---|---|---|
| committer | kittobi1992 <kittobi1992@users.noreply.github.com> | 2014-11-25 10:07:15 +0100 |
| commit | e72612b15a9858ed30c6ad5a890c542c1f25a482 (patch) | |
| tree | 1679b0bbd9be707c01ab738cd8b2221dcfc51037 | |
| parent | 9132c2f869e166f871027a99d1746f712397ce08 (diff) | |
Introduction into Java-Competitive-Programming
| -rw-r--r-- | java/Introduction | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/Introduction b/java/Introduction new file mode 100644 index 0000000..d3b6cd9 --- /dev/null +++ b/java/Introduction @@ -0,0 +1,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} |
