diff --git a/lectures/content.tex b/lectures/content.tex index a9e8264..6ebe57d 100644 --- a/lectures/content.tex +++ b/lectures/content.tex @@ -5,9 +5,13 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} + \begin{lecturecontent} + \item ... + \item ... + \end{lecturecontent} \end{slide} @@ -15,7 +19,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{slide} -\subsection{...} + +\section{section} \begin{dimitem} @@ -25,9 +30,75 @@ \end{dimitem} +\subsection{subsection} + +Blah blah. + \end{slide} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{slide} + +\section{code example} + +Directly above. + +\begin{codeblock}[gobble=2] + // students can be any collection class + + // old way of traversing + Iterator it = students.iterator(); + + while(it.hasNext()) { + Student aStudent = it.next(); + System.out.println(aStudent); + } + + // new way of traversing using Java 5 for-each loop + for (Student aStudent : students) { + System.out.println(aStudent); + } + + String blah = "this is a string"; +\end{codeblock} + +Directly below. + +\newslide + +\section{small code} + +Directly above. + +\begin{smallcodeblock}[gobble=2] + // students can be any collection class + + // old way of traversing + Iterator it = students.iterator(); + + while(it.hasNext()) { + Student aStudent = it.next(); + System.out.println(aStudent); + } + + // new way of traversing using Java 5 for-each loop + for (Student aStudent : students) { + System.out.println(aStudent); + } + + String blah = "this is a string"; +\end{smallcodeblock} + +Directly below. + +\subsection{inline code} + +Blah blah \code{blah blah blah()} blah blah. + +\end{slide} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}