Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ShipTest {
  4.  
  5. public static void main(String[] args) {
  6. String []k = {"1","2","3"};
  7. Ship s = new Ship();
  8. Scanner scn = new Scanner(System.in);
  9. s.setS(k);
  10. while(true){
  11. String a = scn.nextLine();
  12. s.getit(a);
  13. if(a.equals("0000")){
  14. break;
  15. }
  16. }
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement