0
Method returning array
How to write a method, that returns array? Is this good?: public [ ] (x; y){ ... return arr }
13 Answers
0
You need to define return type like this:
public int[] ()
Also, seperate method parameters with , not ;
0
Ohh, nice. Thank you
0
If it doesn't work, post here again.
0
It's okay... Now i have the only problem, when i run the code in sololearn and it says error on System.out.println...
It says, that symbol not found, symbol is in .out, but it is located in .System
0
It's okay... Now i have the only problem, when i run the code in sololearn and it says error on System.out.println...
It says, that symbol not found, symbol is in .out, but it is located in .System
0
Can you link the code here?
0
It is far not complete, i just wanted to test it till here
0
You forgot () after println
0
Let me kill myself :'D I just started programming and it already freaks me out
0
Altough, is the double input correct this way?
0
Yes
0
Thank you