Can I use the same int name for a method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I use the same int name for a method?

When im making a method before main, for example: static void func(int x) {...} can I later initialize an int with the same name or will that cause trouble?

13th Nov 2019, 2:10 PM
Simon Hahner
Simon Hahner - avatar
0 Answers