Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Learn How To use Gogle Guava Strings www.putracode.com
"C:\Program Files\Java\jdk1.8.0_51\bin\java" -Didea.launcher.port=7538 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.4\bin" -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.8.0_51\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\zipfs.jar;E:\_GITHUB\PT-GUAVA-GOOGLE\target\classes;E:\_SERVER\_REPO_LOKAL\.m2\com\google\guava\guava\19.0\guava-19.0.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.putracode.guava.base.GuavaStrings
*********************************************
Google Guava : Strings
*********************************************
>>>>1. emptyToNull
How To Return String Empty When Null --><--
<<<<<
>>>>2. emptyToNull
How To Return null Value When String Empty -->null
<<<<<
>>>>3. Check String Empty Or Null
String Null : true
String Empty : true
Check String Empty Or Null : false
<<<<<
>>>>4. padEnd and padStart
String padEnd 12 : STRING000000
String padStart 12 : 000000STRING
<<<<<
>>>>5. Repeat
Repeat String 2x : STRINGSTRING
<<<<<
>>>>6. Common Prefix and Common Sufix
CommonPrefix [STR123,STR321] is : STR
CommonSufix [STRING000000,123123000000] is : 000000
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.