Advertisement
Guest User

Untitled

a guest
May 28th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. The parameter I passed down include everything in the stars.txt
  2.  
  3.  
  4.  
  5. public static void xCoord(ArrayList<String> a)
  6. {
  7. for(int i=0; i<a.size(); i+=6)
  8. {
  9. while(a.get(i).charAt(0)>=65 || Double.parseDouble(a.get(i))>1.00 )
  10. { if (a.get(i).charAt(0)>=65 )
  11. {
  12. String x =a.get(i);
  13. if(a.get(i+1).charAt(0)>=65)
  14. x+=a.get(i+1);
  15.  
  16. starnames.add(x);
  17. System.out.println(x);
  18. }
  19. i+=1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement