public class ReLoad { static String s = "hello"; void reload(){ System.out.println("01"); } void reload(String a){ System.out.println("02 "+a); } public static void main(String[] args) { ReLoad r1 = new ReLoad(); r1.reload(); r1.reload(s); } }
public class ReLoad { static String s = "hello"; void reload(){ System.out.println("01"); } void reload(String a){ System.out.println("02 "+a); } public static void main(String[] args) { ReLoad r1 = new ReLoad(); r1.reload(); r1.reload(s); } }