• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

Java Equivalent to VB Arrays

Unsized Array

VB Java
Dim myArray() As Integer = Nothing int[] myArray = null;

Sized Array

VB Java
Dim myArray(1) As Integer int[] myArray = new int[2];

Access Array Element

VB Java
x = myArray(0) x = myArray[0];

Jagged Array

VB Java
Dim myArray(1)() As Integer int[][] myArray = new int[2][];

Rectangular Array

VB Java
Dim myArray(1, 2) As Integer int[][] myArray = new int[2][3];


Use VB to Java Converter to convert from VB to Java.     

Additional resource: VB.NET and Java Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.