Skip to content

Instantly share code, notes, and snippets.

@Loule95450
Last active September 28, 2021 16:42
Show Gist options
  • Save Loule95450/1ca46ad43688037bc504c6a8bc99258e to your computer and use it in GitHub Desktop.
Save Loule95450/1ca46ad43688037bc504c6a8bc99258e to your computer and use it in GitHub Desktop.
Multidimensional Arrays in Java
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
}
}
@Loule95450
Copy link
Author

⚠️ - What needs to be changed !

Remove package me.loule; replace this with your company name (Default: package com.company; with IntelliJ)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment