What put put results from this code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What put put results from this code ?

public static void main (string [ ] args) { dosomthing (4) } static void dosomthing (int x){ systeme. out.println(x*x); }

25th Feb 2017, 3:18 PM
sidi mohamed
5 Answers
+ 5
Compilation error ^^
25th Feb 2017, 6:13 PM
Tashi N
Tashi N - avatar
+ 2
16
25th Feb 2017, 3:19 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
16
25th Feb 2017, 3:44 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
class Program { public static void main(String[ ] args) { dosomthing(4); } static void dosomthing (int x){ System.out.println(x*x); } } //Correct code
28th Feb 2017, 7:04 PM
noName
0
16
28th Feb 2017, 5:30 PM
toni stark