31 of 100 menu

Java Taskbook Level 4.1

Given a string of letters and numbers, get the position of the first digit in that string.

Write a program that will generate the following string:

"xxxxx"

Given an array:

int[] {1, 0, 2, 3, 0, 5}

Remove all zeros from the array and write the result to a new array:

int[] {1, 2, 3, 5}
enru