Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. //create the new 10 array
  2.        int [] gridTwo = new int [10];
  3.                                
  4.        //set the boolean to false
  5.        Boolean findmoney = false;
  6.        
  7.        //loop through through grid
  8.        for (i=0; i<10; i++){
  9.            for (j=0; j<10; j++){
  10.     //setting the values to 0, resetting it
  11.                grid [i][j] = 0;
  12.            
  13.            }//end loop for j
  14.        }//end loop for i
  15.        
  16.        //while there is a next line to read
  17.        While (sc.hasnextLine){
  18.            //read it in
  19.            String s = sc.nextLine()
  20.            //save as a string
  21.            Char[]str = s.ToArray;
  22.            //if it reads in a dollar sign
  23.            if (s == $){
  24.                While(stop)//stop the loop
  25.                
  26.            }//end loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement