Last active
September 28, 2021 16:42
-
-
Save Loule95450/1ca46ad43688037bc504c6a8bc99258e to your computer and use it in GitHub Desktop.
Multidimensional Arrays in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.loule; //Change this | |
public class MultidimensionalArrays { | |
public static void main(String args[]) { | |
// Clear Console | |
System.out.print("\033[H\033[2J"); | |
int[][] ArrayName = { { 1, 2 }, { 3, 4 }, { 5, 6 } }; | |
System.out.println(ArrayName[2][1]); // Return 4 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove
package me.loule;
replace this with your company name (Default:package com.company;
with IntelliJ)