public class String{
public static void main(String[] args){

String s0="12345"; //Main resource
String s1=String(s0);
System.out.println(s0);
System.out.println(s1);
System.ou

展开全部
收起
5回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Sofia

    15人对此回答表示赞同

    String s0="12345"; //Main resource
    String s1=new String(s0);
    System.out.println(s0);
    System.out.println(s1);
    System.out.println(s1.charAt(2)+" &quo
    展开
    15
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 12人对此回答表示赞同

    第四行String(s0)如果是强制转换为字符串型,则没有意义,可以直接写s0;
    int t=s0.length();
    最后一行输出变量名写错了S0,是s0
    展开
    12
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Ellie3

    11人对此回答表示赞同

    int t=s0.lenth();

    System.out.println(s0+" "+s0.concat(s1)); 追问
    展开
    11
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 萌猫君

    9人对此回答表示赞同

    你把类名换一下
    展开
    9
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • JessieJ

    4人对此回答表示赞同

    String s1=String(s0);这是什么?
    int t=s0.length();
    展开
    4
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部