Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ShipTest {
- public static void main(String[] args) {
- String []k = {"1","2","3"};
- Ship s = new Ship();
- Scanner scn = new Scanner(System.in);
- s.setS(k);
- while(true){
- String a = scn.nextLine();
- s.getit(a);
- if(a.equals("0000")){
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement