Show Menu
Cheatography

Java - Beginner Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basics

 
\n newLine
\t newTab
\r return
\\ backslash
\' single­quote
\" double­quote
 

Strings

 
STRING METHODS
.length() Returns length of string
.charA­t(i­nt_­index) Returns character by index
.isEmpty() Returns true/false
.toUpp­erC­ase() converts
.toLow­erC­ase() converts
.conta­ins­(...) returns true if string contains given string­/ch­aracter
.subst­rin­g(b­egi­nIndex, endIndex) extra string from string
.repla­ce(old, new) replace