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.
Int cannot be converted to int[] (JAVA)
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.
I think changing this line of code may work,
Just change/keep this line of code.
Hope this helps
Please mark my answer if this helps.
I will look forward this page, thank you!!
@PattanAhmedGlad you got helped!
Please mark my answer if this helps