Skip to content

Instantly share code, notes, and snippets.

@nalimleinad
Last active October 19, 2016 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nalimleinad/15f5b75a956cf4efbd14 to your computer and use it in GitHub Desktop.
Save nalimleinad/15f5b75a956cf4efbd14 to your computer and use it in GitHub Desktop.
Poznámky JAVA
// řazení arrayů od nejmenšího po největší
Arrays.sort(arr);
// Absolutni hodnota
Math.abs(-125);
// nahrazení písmen ve stringu
String aaa = aaa.replace('a', 'b');
// Spojeni hodnot ve stringu
String.join(" ", jmenoStringu)
// Smazání mezery na začátku a konci stringu
s.trim();
// zjištění prvního písmene stringu
s.startWith("a");
s.charAt(0);
// naplnění String pole
String[] stringPole = new String[1000];
Arrays.fill(stringPole,"obsah");
// z charu string
String.valueOf(char);
// z charu int
Character.getNumericValue(char);
// Androidí HashMap dvou Integrů
SparseIntArray sia = new SparseIntArray();
sia.append(1,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment