json中如何截取字符串

2025-05-10 23:02:42

1、注意定义变量:int endIndex = result.lastIndexOf(")");int startIndex = result.indexOf("(")+1;String result1 = result.substring(startIndex, endIndex);Log.e("result1", ""result1)。

json中如何截取字符串

3、代码:private TextView textView = null;private Object json;public vo足毂忍珩id onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);textView = (TextView)this.findViewById(R.id.textview); new Thread(){,public void run()。

json中如何截取字符串
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢