\documentclass[10pt,a4paper]{article}

% Packages
\usepackage{fancyhdr}           % For header and footer
\usepackage{multicol}           % Allows multicols in tables
\usepackage{tabularx}           % Intelligent column widths
\usepackage{tabulary}           % Used in header and footer
\usepackage{hhline}             % Border under tables
\usepackage{graphicx}           % For images
\usepackage{xcolor}             % For hex colours
%\usepackage[utf8x]{inputenc}    % For unicode character support
\usepackage[T1]{fontenc}        % Without this we get weird character replacements
\usepackage{colortbl}           % For coloured tables
\usepackage{setspace}           % For line height
\usepackage{lastpage}           % Needed for total page number
\usepackage{seqsplit}           % Splits long words.
%\usepackage{opensans}          % Can't make this work so far. Shame. Would be lovely.
\usepackage[normalem]{ulem}     % For underlining links
% Most of the following are not required for the majority
% of cheat sheets but are needed for some symbol support.
\usepackage{amsmath}            % Symbols
\usepackage{MnSymbol}           % Symbols
\usepackage{wasysym}            % Symbols
%\usepackage[english,german,french,spanish,italian]{babel}              % Languages

% Document Info
\author{sefergus}
\pdfinfo{
  /Title (java-midterm.pdf)
  /Creator (Cheatography)
  /Author (sefergus)
  /Subject (Java Midterm Cheat Sheet)
}

% Lengths and widths
\addtolength{\textwidth}{6cm}
\addtolength{\textheight}{-1cm}
\addtolength{\hoffset}{-3cm}
\addtolength{\voffset}{-2cm}
\setlength{\tabcolsep}{0.2cm} % Space between columns
\setlength{\headsep}{-12pt} % Reduce space between header and content
\setlength{\headheight}{85pt} % If less, LaTeX automatically increases it
\renewcommand{\footrulewidth}{0pt} % Remove footer line
\renewcommand{\headrulewidth}{0pt} % Remove header line
\renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit
% This two commands together give roughly
% the right line height in the tables
\renewcommand{\arraystretch}{1.3}
\onehalfspacing

% Commands
\newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour
\newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols
\newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns
\newcommand{\tn}{\tabularnewline} % Required as custom column type in use

% Font and Colours
\definecolor{HeadBackground}{HTML}{333333}
\definecolor{FootBackground}{HTML}{666666}
\definecolor{TextColor}{HTML}{333333}
\definecolor{DarkBackground}{HTML}{1D7BA3}
\definecolor{LightBackground}{HTML}{F0F6F9}
\renewcommand{\familydefault}{\sfdefault}
\color{TextColor}

% Header and Footer
\pagestyle{fancy}
\fancyhead{} % Set header to blank
\fancyfoot{} % Set footer to blank
\fancyhead[L]{
\noindent
\begin{multicols}{3}
\begin{tabulary}{5.8cm}{C}
    \SetRowColor{DarkBackground}
    \vspace{-7pt}
    {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent
        \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}}
    }
\end{tabulary}
\columnbreak
\begin{tabulary}{11cm}{L}
    \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Java Midterm Cheat Sheet}}}} \\
    \normalsize{by \textcolor{DarkBackground}{sefergus} via \textcolor{DarkBackground}{\uline{cheatography.com/31341/cs/9489/}}}
\end{tabulary}
\end{multicols}}

\fancyfoot[L]{ \footnotesize
\noindent
\begin{multicols}{3}
\begin{tabulary}{5.8cm}{LL}
  \SetRowColor{FootBackground}
  \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}}  \\
  \vspace{-2pt}sefergus \\
  \uline{cheatography.com/sefergus} \\
  \end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}}  \\
   \vspace{-2pt}Published 16th October, 2016.\\
   Updated 16th October, 2016.\\
   Page {\thepage} of \pageref{LastPage}.
\end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}}  \\
  \SetRowColor{white}
  \vspace{-5pt}
  %\includegraphics[width=48px,height=48px]{dave.jpeg}
  Measure your website readability!\\
  www.readability-score.com
\end{tabulary}
\end{multicols}}




\begin{document}
\raggedright
\raggedcolumns

% Set font size to small. Switch to any value
% from this page to resize cheat sheet text:
% www.emerson.emory.edu/services/latex/latex_169.html
\footnotesize % Small font.

\begin{multicols*}{3}

\begin{tabularx}{5.377cm}{x{3.58344 cm} x{1.39356 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{String Methods}}  \tn
% Row 0
\SetRowColor{LightBackground}
.toUpperCase() & \seqsplit{.equals(str)} \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
.toLowerCase() & \seqsplit{.indexOf(e)} \tn 
% Row Count 3 (+ 1)
% Row 2
\SetRowColor{LightBackground}
.substring(i,j) {\emph{j is excluded}} & \seqsplit{.concat(str)} \tn 
% Row Count 5 (+ 2)
% Row 3
\SetRowColor{white}
.length() & .charAt(i) \tn 
% Row Count 6 (+ 1)
% Row 4
\SetRowColor{LightBackground}
.compareTo(str) & \seqsplit{.contains(e)} \tn 
% Row Count 8 (+ 2)
% Row 5
\SetRowColor{white}
\mymulticolumn{2}{x{5.377cm}}{\seqsplit{Integer.parseInteger(intString)}} \tn 
% Row Count 9 (+ 1)
% Row 6
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{\seqsplit{Double.parseDouble(doubleString)}} \tn 
% Row Count 10 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{import java.util.Scanner; \newline Scanner input= new Scanner(System.in); \newline  \newline Scanner Methods: \newline .nextLine() {\emph{ends with line}} \newline .next() {\emph{ends with white space}} \newline .nextDouble() \newline .nextInt()}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.69349 cm} x{1.3731 cm} x{1.51041 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Naming}}  \tn
% Row 0
\SetRowColor{LightBackground}
keywords & lowercase & rule \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
variables & camelCase & convention \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
constants & ALL\_CAPS & rule \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
class names & CamelCase & convention \tn 
% Row Count 4 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}---}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.58804 cm} x{2.38896 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Math Methods}}  \tn
% Row 0
\SetRowColor{LightBackground}
Math.pow(a, b) & Math.PI() \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Math.log(x), Math.log10(x) & Math.sqrt(x) \tn 
% Row Count 3 (+ 2)
% Row 2
\SetRowColor{LightBackground}
Math.floor  {\emph{rounds down}} & Math.ceil()  {\emph{rounds up}} \tn 
% Row Count 5 (+ 2)
% Row 3
\SetRowColor{white}
Math.random() & Math.min(), Math.max() \tn 
% Row Count 7 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{import java.lang.Math; \newline  \newline has sin, cos, tan, toRadians, toDegree, asin, acos, atan \newline  \newline low + Math.random()* high (non-inclusive)}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{p{0.69678 cm} x{4.28022 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Escape Sequences}}  \tn
% Row 0
\SetRowColor{LightBackground}
\textbackslash{}t & tab \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
\textbackslash{}n & newline \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
\textbackslash{}" & double quote \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
\textbackslash{}\textbackslash{} & backslash \tn 
% Row Count 4 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Date Class}}  \tn
% Row 0
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{jav.util.Date date= new java.util.Date;} \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{date.toString();} \tn 
% Row Count 2 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Point2D Class}}  \tn
% Row 0
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{import java.geometry.Point2D;} \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{Point2D variable = new Point2D(x, y);} \tn 
% Row Count 2 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Objects}}  \tn
% Row 0
\SetRowColor{LightBackground}
no variable constructor & Circle() \{ \{\{nl\}\}  \} \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
constructor & Circle (double radius) \{ \{\{nl\}\} this.radius=radius;\} \tn 
% Row Count 5 (+ 3)
% Row 2
\SetRowColor{LightBackground}
getter & double getArea() \{ \{\{nl\}\} return 2 x radius x radius x Math.PI; \{\{nobreak\}\}\} \tn 
% Row Count 9 (+ 4)
% Row 3
\SetRowColor{white}
setter & void setRadius(double radius) \{ \{\{nl\}\} this.radius=radius;\} \tn 
% Row Count 12 (+ 3)
% Row 4
\SetRowColor{LightBackground}
instanceof & tests whether an object is an instance of a class \tn 
% Row Count 14 (+ 2)
% Row 5
\SetRowColor{white}
super(); & calls no arg constructor of superclass \tn 
% Row Count 16 (+ 2)
% Row 6
\SetRowColor{LightBackground}
super(arg); & calls matching arg constructor of superclass \tn 
% Row Count 18 (+ 2)
% Row 7
\SetRowColor{white}
array of objects & for (int i, i\textless{}thing.length, i++) \{\{nl\}\} ~~~ array{[}i{]}= new Thing(param);\} \tn 
% Row Count 22 (+ 4)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{"this.radius" is an instance variable, as is the original data field \newline "radius" is the local variable \newline  \newline constructors must have same name as class \newline constructors do not have a return type, not even void \newline constructors are invoked using the new operator when an object is created \newline default constructor goes to class with no other constructors defined}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.93643 cm} x{2.04057 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Abstract Classes and Interfaces}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Abstract Classes}} & {\bf{Interfaces}} \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
cannot use "new" & only has abstract methods \tn 
% Row Count 3 (+ 2)
% Row 2
\SetRowColor{LightBackground}
methods have no body & no constructors \tn 
% Row Count 4 (+ 1)
% Row 3
\SetRowColor{white}
mix of abstract/non-abstract methods & "implements" \tn 
% Row Count 6 (+ 2)
% Row 4
\SetRowColor{LightBackground}
"extends" & contains constants \tn 
% Row Count 8 (+ 2)
% Row 5
\SetRowColor{white}
\mymulticolumn{2}{x{5.377cm}}{has constructors} \tn 
% Row Count 9 (+ 1)
% Row 6
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{contains contacts and variables} \tn 
% Row Count 10 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{public abstract class ClassName \{ \newline  \newline java.lang.Comparable \newline public interface comparable \textless{}E\textgreater{}\{ \{\{nl\}\} ~~~ public int compareTo(E o); \} \{\{nl\}\} ~~~~~~ {\emph{returns -1 for less than, 0 for equals, ~~~~~~~1 for greater than}} \{\{noshy\}\} \{\{nl\}\}  \newline java.lang.Cloneable \newline public interface clonable \{\} \{\{nl\}\}~~~~~~ {\emph{use .clone()}}}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.4931 cm} x{3.4839 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Loops}}  \tn
% Row 0
\SetRowColor{LightBackground}
while & int x=n;\{\{nl\}\} while (x\textgreater{}1) \{ \{\{nl\}\} change x; \} \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
for & for (int i, i\textless{}variable, i++)\{ \tn 
% Row Count 4 (+ 2)
% Row 2
\SetRowColor{LightBackground}
for each (arrays) & for (int i: list)\{ \tn 
% Row Count 6 (+ 2)
% Row 3
\SetRowColor{white}
boolean & (boolean ? true : false) \tn 
% Row Count 7 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Characters}}  \tn
% Row 0
\SetRowColor{LightBackground}
.isDigit(ch) & .isLetter(ch) \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
.isLowerCase(ch), .isUpperCase(ch) & .toLowerCase(ch), .toUppercase(ch) \tn 
% Row Count 3 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.59264 cm} x{3.38436 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{ArrayList Methods}}  \tn
% Row 0
\SetRowColor{LightBackground}
create & ArrayList\textless{}type\textgreater{} name = new ArrayList\textless{}type\textgreater{}(); \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
access element & list.get(i) \tn 
% Row Count 4 (+ 2)
% Row 2
\SetRowColor{LightBackground}
update element & list.set(i, e) \tn 
% Row Count 6 (+ 2)
% Row 3
\SetRowColor{white}
return size & list.size() \tn 
% Row Count 7 (+ 1)
% Row 4
\SetRowColor{LightBackground}
add element & list.add((i), e) \tn 
% Row Count 8 (+ 1)
% Row 5
\SetRowColor{white}
remove element & list.remove(i or e) \tn 
% Row Count 10 (+ 2)
% Row 6
\SetRowColor{LightBackground}
remove all elements & list.clear() \tn 
% Row Count 12 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{import java.util.ArrayList;}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Important methods}}  \tn
% Row 0
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{modifier returnValueType methodName(params)\{} \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{public Class ClassName\{ \{\{nl\}\} ~~~public static void main (String{[}{]} args)} \tn 
% Row Count 3 (+ 2)
% Row 2
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{Scanner input= new Scanner(System.in)} \tn 
% Row Count 4 (+ 1)
% Row 3
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{\seqsplit{System.out.println(line);}} \tn 
% Row Count 5 (+ 1)
% Row 4
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{public static type name (type param)\{ \{\{nl\}\} ~~~return type; \}} \tn 
% Row Count 7 (+ 2)
% Row 5
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{public boolean equals (Object o)\{ \{\{nl\}\} ~~~if (o instance Person)\{ \{\{nl\}\}~~~~~~ Person p= (Person) o; \{\{nl\}\}~~~~~~ return \seqsplit{this.name.equals(p.getName()));} \{\{nl\}\}~~~ \}else\{ \{\{nl\}\} ~~~~~~return false; \{\{nl\}\}~~~ \} \{\{nl\}\}\}} \tn 
% Row Count 15 (+ 8)
% Row 6
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{public String toString()\{ \{\{nl\}\}~~~ return "String";\}} \tn 
% Row Count 17 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{to use a method from a different class: \newline Class.method(var);}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Array methods}}  \tn
% Row 0
\SetRowColor{LightBackground}
\seqsplit{java.util.Arrays.sort(array)} \{\{nobreak\}\} & .length \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
\{\{nobreak\}\}java.util.Arrays.equal(a1, a2) & {\emph{if corresponding elements are the same}} \tn 
% Row Count 5 (+ 3)
% Row 2
\SetRowColor{LightBackground}
\{\{nobreak\}\} \seqsplit{Arrays.toString(array)} & .reverse() \tn 
% Row Count 7 (+ 2)
% Row 3
\SetRowColor{white}
array{[}i{]} & array{[}i{]}=e \tn 
% Row Count 8 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{import java.util.Arrays; \newline int{[}{]} values= new int{[}10{]} \newline default values: 0, /u0000, or false \newline printing gives reference \newline methods can modify arrays \newline import java.util.Arrays; \newline multi-dimensional arrays: arrays of arrays.  \newline `elementType {[}rows{]}{[}columns{]} arrayVar`}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vocabulary}}  \tn
% Row 0
\SetRowColor{LightBackground}
composition & information belongs to one object \tn 
% Row Count 2 (+ 2)
% Row 1
\SetRowColor{white}
\seqsplit{association/segregation} & information can belong to many objects \tn 
% Row Count 4 (+ 2)
% Row 2
\SetRowColor{LightBackground}
public visibility & can be seen anywhere in any package \tn 
% Row Count 6 (+ 2)
% Row 3
\SetRowColor{white}
private visibility & can be seen within class \tn 
% Row Count 8 (+ 2)
% Row 4
\SetRowColor{LightBackground}
protected visibility & in package and subclasses of this in any package \tn 
% Row Count 11 (+ 3)
% Row 5
\SetRowColor{white}
runtime error & crash \tn 
% Row Count 12 (+ 1)
% Row 6
\SetRowColor{LightBackground}
compile error & doesn't run \tn 
% Row Count 13 (+ 1)
% Row 7
\SetRowColor{white}
final static & constant modifier \tn 
% Row Count 14 (+ 1)
% Row 8
\SetRowColor{LightBackground}
byte & 8 bits* \tn 
% Row Count 15 (+ 1)
% Row 9
\SetRowColor{white}
block comment & /* ... */ \tn 
% Row Count 16 (+ 1)
% Row 10
\SetRowColor{LightBackground}
line comment & // \tn 
% Row Count 17 (+ 1)
% Row 11
\SetRowColor{white}
javadoc comments & /** ... */ \tn 
% Row Count 18 (+ 1)
% Row 12
\SetRowColor{LightBackground}
break; & breaks out of a loop \tn 
% Row Count 19 (+ 1)
% Row 13
\SetRowColor{white}
continue; & stays in loop \tn 
% Row Count 20 (+ 1)
% Row 14
\SetRowColor{LightBackground}
variable declaration & creating a variable with its type \tn 
% Row Count 22 (+ 2)
% Row 15
\SetRowColor{white}
static & shared by all instances of a class \tn 
% Row Count 24 (+ 2)
% Row 16
\SetRowColor{LightBackground}
relational operator & \textless{}, \textless{}=, ==, !=,  \textgreater{}, \textgreater{}= \tn 
% Row Count 26 (+ 2)
% Row 17
\SetRowColor{white}
logical operator & !, \&\&, || ({\emph{inclusive}}), \textasciicircum{} ({\emph{exclusive}}) \tn 
% Row Count 28 (+ 2)
% Row 18
\SetRowColor{LightBackground}
Numeric Types (in order) & byte, short, int, long, float, double \tn 
% Row Count 30 (+ 2)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vocabulary (cont)}}  \tn
% Row 19
\SetRowColor{LightBackground}
Variable Scope & variables only exist within \{\} \tn 
% Row Count 2 (+ 2)
% Row 20
\SetRowColor{white}
assignment operators & =, +=, -=, *=, /=, \%= \tn 
% Row Count 4 (+ 2)
% Row 21
\SetRowColor{LightBackground}
operators & +, -, \%, / ({\emph{truncates for int}}) \tn 
% Row Count 6 (+ 2)
% Row 22
\SetRowColor{white}
increment/ decrement operators & ++, -{}- \tn 
% Row Count 8 (+ 2)
% Row 23
\SetRowColor{LightBackground}
instance method & a method that can only be invoked from a specific object \tn 
% Row Count 11 (+ 3)
% Row 24
\SetRowColor{white}
local variable & within a method \tn 
% Row Count 12 (+ 1)
% Row 25
\SetRowColor{LightBackground}
instance variable & dependent on the specific instance (class) \tn 
% Row Count 14 (+ 2)
% Row 26
\SetRowColor{white}
overloading methods & methods can have the same name as long as their method signatures are different \tn 
% Row Count 18 (+ 4)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\SetRowColor{LightBackground}
\mymulticolumn{2}{x{5.377cm}}{binary operators are left-associative, assignment operators are right associative}  \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}


% That's all folks
\end{multicols*}

\end{document}