Last active
October 19, 2016 18:27
-
-
Save nalimleinad/15f5b75a956cf4efbd14 to your computer and use it in GitHub Desktop.
Poznámky JAVA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ř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