• Post Reply Bookmark Topic Watch Topic
  • New Topic

import static... anybody knows?  RSS feed

 
André Asantos
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which are the sintax errors?




package importe.estatico;

public class Test1 {

public static final String TESTE1 = "qualquerCoisa";
}

-----------------------------------------------------------------------------------


package importe.estatico;


import static importe.estatico.
public class Test2 {


}
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean, what are the syntax errors? Doesn't the compiler or your IDE tell you? Your static import is incomplete.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Google search for "java static import" returned this handy reference...

Java Language Guide - Static Import.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!