Java Cheat Sheet
Resource
Online
Download
Related
- BlazeDS
- Eclipse
- EJB
- GlassFish
- Grails
- GWT
- Hibernate
- IntelliJ IDEA
- Java EE
- JavaFX
- JavaServer Faces
- JBoss
- JDBC
- JSP
- JUnit
- Maven
- NetBeans
- RichFaces
- Spring Framework
- Spring Roo
- Tapestry
Basics
Setup
Syntax
· Methods
Number
Number Class
Number methods
· equals()
· abs()
· ceil()
· floor()
· rint()
· round()
· min()
· max()
· exp()
· log()
· pow()
· sqrt()
· sin()
· cos()
· tan()
· asin()
· acos()
· atan()
· atan2()
· random()
Character
Character Class
Character methods
String
String Class
String methods
· int compareTo(String anotherString)
· int compareToIgnoreCase(String str)
· boolean contentEquals(StringBuffer sb)
· static String copyValueOf(char[] data)
· static String copyValueOf(char[] data, int offset, int count)
· boolean endsWith(String suffix)
· boolean equals(Object anObject)
· boolean equalsIgnoreCase(String anotherString)
· byte[] getBytes(String charsetName
· void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
· int indexOf(int ch, int fromIndex)
· int indexOf(String str, int fromIndex)
· int lastIndexOf(int ch, int fromIndex)
· int lastIndexOf(String str, int fromIndex)
· boolean matches(String regex)
· boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
· boolean regionMatches(int toffset, String other, int ooffset, int len)
· String replace(char oldChar, char newChar)
· String replaceAll(String regex, String replacement
· String replaceFirst(String regex, String replacement)
· String[] split(String regex)
· String[] split(String regex, int limit)
· boolean startsWith(String prefix)
· boolean startsWith(String prefix, int toffset)
· CharSequence subSequence(int beginIndex, int endIndex)
· String substring(int beginIndex)
· String substring(int beginIndex, int endIndex)
· String toLowerCase(Locale locale)
· String toUpperCase(Locale locale)
· static String valueOf(primitive data type x)
Basic Classes
Basic Classes
· Arrays
Data Structures
Data structures
· BitSet
· Vector
· Stack
Collection
· Set
· Map
Advanced
Advanced Topic
Object Oriented
Object Oriented Topic
String
String Class
String methods
- char charAt(int index)
- int compareTo(Object o)
- int compareTo(String anotherString)
- int compareToIgnoreCase(String str)
- String concat(String str)
- boolean contentEquals(StringBuffer sb)
- static String copyValueOf(char[] data)
- static String copyValueOf(char[] data, int offset, int count)
- boolean endsWith(String suffix)
- boolean equals(Object anObject)
- boolean equalsIgnoreCase(String anotherString)
- byte getBytes()
- byte[] getBytes(String charsetName
- void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
- int hashCode()
- int indexOf(int ch)
- int indexOf(int ch, int fromIndex)
- int indexOf(String str)
- int indexOf(String str, int fromIndex)
- String intern()
- int lastIndexOf(int ch)
- int lastIndexOf(int ch, int fromIndex)
- int lastIndexOf(String str)
- int lastIndexOf(String str, int fromIndex)
- int length()
- boolean matches(String regex)
- boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
- boolean regionMatches(int toffset, String other, int ooffset, int len)
- String replace(char oldChar, char newChar)
- String replaceAll(String regex, String replacement
- String replaceFirst(String regex, String replacement)
- String[] split(String regex)
- String[] split(String regex, int limit)
- boolean startsWith(String prefix)
- boolean startsWith(String prefix, int toffset)
- CharSequence subSequence(int beginIndex, int endIndex)
- String substring(int beginIndex)
- String substring(int beginIndex, int endIndex)
- char[] toCharArray()
- String toLowerCase()
- String toLowerCase(Locale locale)
- String toString()
- String toUpperCase()
- String toUpperCase(Locale locale)
- String trim()
- static String valueOf(primitive data type x)