Home > Back-end >  Casts.
Casts.

Time:09-17

How will this {Dec, Feb, Nov, Oct, June, Sept, Aug, Apr, May, out, Jan, Mar} array, optional with a string of Numbers instead of the inside of the English, and then converted into an int array? (the Java language)

CodePudding user response:

Char a []={Dec, Feb, Nov, Oct, June, Sept, Aug, Apr, May, out, Jan, Mar};
int i=0;
for(i=0; i<12. I++)
{
System. The out. Println (a [I]);
}

Loop output,
  • Related