i was trying to rewrite the below code, i m using notepad | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas