Skip to content
Int cannot be converted to int[] (JAVA)
Profile icon
paulluch

it gives me the error: exit status 1
UnitTests.java:11: error: incompatible types: int cannot be converted to int[]
int[] solution = Main.candyCalculator(108);
And i don`t know how to fix it.
If someone can help, I just started programing with JAVA
Sometimes works but when I want to submit the task it gets the error that I said.

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
Profile icon
DynamicSquid

it seems to be working fine...