0
Arrays as arguments
Is it possible to make a method/function of, as example, type int[] (I mean an array of integers) and with an argument of the same type? And if it is possible, how does it work (what's the syntax)?
2 odpowiedzi
+ 1
Just put the type with square brackets e.g. int[]
https://code.sololearn.com/cbBjnt3WPX6w/?ref=app
0
Thank you, TurtleShell. This helped much.