Answer the question
In order to leave comments, you need to log in
Why is the method not returning a value?
My code:
public int giveBalance(int amount) {
return amount;
}
giveBalance(10); // не возвращает значение
Answer the question
In order to leave comments, you need to log in
As you defined that does not return, you anywhere returned value do not save.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question