var Var1 = ["0"];
var Var2 = ["0"];
var Var3 = ["0"];
var Var4 = ["0"];
How can i form this type of variables in java. This is of JavaScript. I tried something like this, but fail.
Array Var1[] = new["0"];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The syntax differs for Java:
You can also do this:
although the second
String[]is optional in the array declaration.Also
for integer types.
See: Arrays