AnsweredAssumed Answered

Parse error when using arrays

Question asked by Yasaswani on Jun 10, 2016
Latest reply on Jun 13, 2016 by Yasaswani

I am getting the below error when using the following code in Custom Java step. can anyone please help with this.

 

Code:

         try

{

long number = 8060100017L;

long array[] = new long[16];

 

for (int i = 0; number != 0; i++) {

array[i] = (number % 10);

number = number / 10;

 

System.out.print(array[i]);

}

}

catch (Exception e)

{}

Error:

Parse error at line 4, column 27.  Encountered

 

 

long number = 8060100017L; long array[] = new long[16]; for (int i = 0; number != 0; i++) { array[i] = (number % 10); number = number / 10; System.out.print(array[i]);

Outcomes