TimeUnit by referring them with the class name, just like we refer to static variables. Suppose you are using lots of static variables from a utility class e.g. Do you know what is a shortcut to doing static import in Eclipse? Well, I didn't know before, but today I come to know that shortcut Ctrl+Shift+M (Source > Add Import) can not only be used to add missing imports but can also help with static import in the Java program.
0 Comments
Leave a Reply. |