Tags » Util

Transfo 110->220 - SOLD

Transformer 110 volt to 220 volt. Used it to run 220V devices from other countries. Probably needs plug adapters to fit the right countries.

Util

Avoid Null Checks with Java 8

Alternative Code Enhancement to using Null Check with Java 8:
Let’s go into the concept straight away. Previously when we call a method. If everything works well it returns expected value, otherwise it returns null reference. 570 more words

Drive

Strange it is

If I run the following program, which parses two date strings referencing times one second apart and compares them:

public static void main(String[] args) throws ParseException { SimpleDateFormat sf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”); String str3 = “1927-12-31 23:54:07″; String str4 = “1927-12-31 23:54:08″; Date sDt3 = sf.parse(str3); Date sDt4 = sf.parse(str4); long ld3 = sDt3.getTime() /1000; long ld4 = sDt4.getTime() /1000; System.out.println(ld3); System.out.println(ld4); System.out.println(ld4-ld3); } 156 more words

Java