Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The parameter I passed down include everything in the stars.txt
- public static void xCoord(ArrayList<String> a)
- {
- for(int i=0; i<a.size(); i+=6)
- {
- while(a.get(i).charAt(0)>=65 || Double.parseDouble(a.get(i))>1.00 )
- { if (a.get(i).charAt(0)>=65 )
- {
- String x =a.get(i);
- if(a.get(i+1).charAt(0)>=65)
- x+=a.get(i+1);
- starnames.add(x);
- System.out.println(x);
- }
- i+=1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement