[Solved]Method Confusion | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[Solved]Method Confusion

I want to write a program which takes the user input then pass through a method and give the output.This code 👇 did exactly what I wanted but why must a number ex.0 placed in the parenthesis when calling the method🤔.The number too becomes useless because the number's output is not return but the user's input rather?Is there anyway I can avoid it? Thanks https://code.sololearn.com/cDF19iXnFMit/?ref=app.

21st Mar 2021, 4:18 PM
!Derrickee
!Derrickee - avatar
1 Answer
+ 5
Martin Taylor Thank you very much😁. With the help of your explain I can now continue with the methods, argumens and return types
21st Mar 2021, 7:57 PM
!Derrickee
!Derrickee - avatar