initialize array with values java
int[] arr = {3,6,9,12};
int[] arr = new int[]{1, 2, 3};
initialize array with values java
int[] arr = {3,6,9,12};
int[] arr = new int[]{1, 2, 3};
java array initialization
int[] data = {10,20,30,40,50,60,71,80,90,91};
// or
int[] data;
data = new int[] {10,20,30,40,50,60,71,80,90,91};
java create array with values
//Given values must match array type
int[] myIntArray = {1, 2, 3};
array initialization in Java
var-name = new type [size];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us