3 element array for java, i need help understanding it -
hi can explain me question asking? don't quite 3 element array in java. full question.
declare 3-element array of characters chararr, , initialize values
'*'
your requested create array of type char
3 elements , initialize this:
char[] mychararray = new char[] {'*', '*', '*' };
update: or shorter:
char[] mychararray = {'*', '*', '*' }; // or {'\'', '*', '\'' }
Comments
Post a Comment