• 2021-04-14 问题

    阅读下面的程序,选择正确的答案?() classStringDemo{ publicstaticvoidmain(String[]args){ Strings1=“a”; Strings2=“b”; show(s1,s2); System.out.println(s1+s2); } publicstaticvoidshow(Strings1,Strings2){ s1=s1+”q”; s2=s2+s1; } }

    阅读下面的程序,选择正确的答案?() classStringDemo{ publicstaticvoidmain(String[]args){ Strings1=“a”; Strings2=“b”; show(s1,s2); System.out.println(s1+s2); } publicstaticvoidshow(Strings1,Strings2){ s1=s1+”q”; s2=s2+s1; } }

  • 2021-04-14 问题

    阅读下面的程序,选择正确的答案?()classStringDemo{publicstaticvoidmain(String[]args){Strings1=“a”;Strings2=“b”;show(s1,s2);System.out.println(s1+s2);}publicstaticvoidshow(Strings1,Strings2){s1=s1+”q”;s2=s2+s1;}}

    阅读下面的程序,选择正确的答案?()classStringDemo{publicstaticvoidmain(String[]args){Strings1=“a”;Strings2=“b”;show(s1,s2);System.out.println(s1+s2);}publicstaticvoidshow(Strings1,Strings2){s1=s1+”q”;s2=s2+s1;}}

  • 1