+ 1
Please help me,
I want to write a method, the input data is int array length and string numbers separated by commas. In the method, we separate and convert the numbers into an array, I can’t correctly enter data into the mathode or withdraw it from it, in any case, the method does not work. The code itself works great without the method. Data Entry Example 3 4,22,13 https://code.sololearn.com/cN7Cf9yKrY5Y/?ref=app
1 Respuesta
+ 1
Your declaration of methods is wrong..
Method in method is not works..
Main() {
//...
// call method
//
}
createArray() {
...
}
This is Valid structure.
Put your createAreay method definition out of main method. Make it static.
and start from 0 to ', ' index in convert.
Add +1 to end index for remove method...
These changes will work to complete it..