The problem is not there. Java initializes automatic to 0. The problem is in System.in.read(). I don't know what parameters I need to input the array from the keyboard.
L
LORDA12
@LORDA12
Posts
-
why can't I figure out array input -
why can't I figure out array inputI've read all articles in the internet, but couldn't succeed in array input. it gives me an error at System.in.read(client[i]); Can you tell me the simpliest way to input int array? Thanks.
package biznes;
import java.io.InputStream;public class Vavejdane {
void Input() {
int[] client = new int[10];
for ( int i : client)
{
System.out.println("Vavedi masiva");
System.in.read(client[i]);
}}
}