Advertisement
Dennis07

Untitled

Jan 20th, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     private String save() {
  2.         String result = new String();
  3.         for (int x = 0; x < fields.length; x++) {
  4.             for (int y = 0; y < fields[x].length; y++) {
  5.                 for (int z = 0; z < fields[x][y].length; z++) {
  6.                     result += fields[x][y][z];
  7.                 }
  8.                 if (y < fields[x].length - 1) {
  9.                     result += ',';
  10.                 }
  11.             }
  12.             if (x < fields.length - 1) {
  13.                 result += '/';
  14.             }
  15.         }
  16.         return result;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement