+ 5

Hey I was just practicing java and I got stucked plzz help me!!!

https://code.sololearn.com/c7SY2lmCh4jb/?ref=app

21st Aug 2017, 11:27 AM
Vaibhav Singh Sikarwar
Vaibhav Singh Sikarwar - avatar
2 Respostas
+ 7
public class hello { int sum(int num1,int num2) { return num1 + num2; } } public class Program { public static void main(String[] args) { hello e = new hello(); int add= e.sum(5,6); System.out.println(add); } } //it will work @vaibhav
21st Aug 2017, 11:34 AM
Changed
Changed - avatar
+ 5
Thanks @Gaurav for your help !!!
21st Aug 2017, 11:42 AM
Vaibhav Singh Sikarwar
Vaibhav Singh Sikarwar - avatar