Skip to content
This repository was archived by the owner on Apr 21, 2018. It is now read-only.

Commit 268ed87

Browse files
author
YouniS Bensalah
committed
Typo in String.split() interface
1 parent ef816a3 commit 268ed87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

slides-05.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ \subsection{Adjazenzmatrix}
849849

850850
\begin{exampleblock}{}
851851
\begin{lstlisting}[language=Java,basicstyle=\scriptsize]
852-
String[] result = String.split(";", "cyan;yellow;magenta");
852+
String colors = "cyan;yellow;magenta";
853+
String[] result = colors.split(";");
853854
\end{lstlisting}
854855
\end{exampleblock}
855856

0 commit comments

Comments
 (0)