Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Java : Accessing a class within a package, which is the better way?
  2. java.lang.Math.sqrt(x);
  3.        
  4. import java.lang.Math;
  5.  
  6. Math.sqrt(x);
  7.        
  8. import java.util.ArrayList;
  9. ....
  10. ArrayList<String> i = new ArrayList<String>();
  11.        
  12. import java.util.*;
  13.        
  14. import static java.lang.Math.*;
  15.        
  16. sqrt(x)