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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -