i was trying to rewrite the below code, i m using notepad | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i was trying to rewrite the below code, i m using notepad

public class SimCal{ public static void sum(int a, int b){ System.out.println(a + b); } public static void main(String[] args){ sum(3, 9); } } into this class SimpleCal{ public static void sum(int a, int b){ System.out.println(a + b); } } public class SimpleCalMain{ public static void main(String[] args){ sum(3, 2); } } but it doesn't work why.

23rd May 2019, 4:47 PM
stephen haokip
stephen haokip - avatar
0 Answers