View Single Post
Old 06-16-2007, 12:15 PM   #2 (permalink)
jaeusm
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Java import statement

You use the 'static' keyword in an import statement when importing static methods. However, it is not good style to import methods only because your code becomes less readable. In this particular instance, you should remove all your import statements and explicitly call each static method using the type (or class, if you prefer that terminology) as shown below.
Code:
boolean x = Character.isUpperCase('A');
boolean y = Character.isLowerCase('b');

jaeusm is offline