StringUtils is Operations on String that are null safe. Snipset code below was a my code history.
//when i was in collage String result=”putracode”: if(data ==null && data.length>0 ){ result=data; } //First Time in Job String result= (data ==null && data.length>0 ? data ; “putracode”); //And Now String result=StringUtils.defaultIfBlank(data,”putracode”);
Look More Simple.. 😀
StringUtils […]
FastDateFormat is a fast and thread-safe version of SimpleDateFormat.To obtain an instance of FastDateFormat, use one of the static factory methods: getInstance(String, TimeZone, Locale), getDateInstance(int, TimeZone, Locale),getTimeInstance(int, TimeZone, Locale), or getDateTimeInstance(int, int, TimeZone, Locale)
Since FastDateFormat is thread safe, you can use a static member […]
Take a look for RandomStringUtils and RandomUtils. Apache Common-langs make a simple way to do it. RandomUtils is a Utility library that supplement the sandart Random class. RandomStringUtils is an operations for random Strings. Currently private high surrogate characters are ignored. These are Unicode characters that fall between the values 56192 (db80) and 56319 (dbff) […]
Do you have a little bored using Java Util Date? Say it to do little operation using java Util Date.
example parsing String to Date, add days , add month, round Date, truncate date
ceiling date and more operation. Using standart java code we will add some code to these operation.
Now I […]