• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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 © 2004 – 2021 Tangible Software Solutions, Inc.