Guest User

Untitled

a guest
Mar 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. String[] strs = new String[10];
  2. for(int i=0;i<strs.length;i++){
  3. System.out.println("String length is: " + strs[i].length());
  4. }
  5.  
  6. Cell[][] board = new Cell[5][10];
  7. for(int r=0;r<board.length;r++){
  8. for(int c=0;c<board[r].length;c++){
  9. board[c][r] = new Cell();
  10. }
  11. }
  12.  
  13. int[] intArray;
  14. intArray = {10,9.8};
  15.  
  16.  
  17.  
  18. int[] intArray;
  19. intArray = new int[15];
  20. int total = 0;
  21. for(int i=intArray.length;i>=0;i--){
  22. total += intArray[i];
  23. }
Add Comment
Please, Sign In to add comment