如何显示路线信息? [英] how to display the route information?

查看:98
本文介绍了如何显示路线信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们具有这是java \ n这是android \ n这是.net"这样的字符串时,所有这些如何实现代码,在这里我必须以string []类型一一显示上述文本.
这是java
这是android
这是.net
因此,请帮助我解决问题

hi all how to implement code when we have the string like "this is java \n this is android \n this is .net" here i have to display the above text one by one in string[] type like.
this is java
this is android
this is .net
so help me to solve the problem

推荐答案

String[] lines = "this is java \n this is android \n this is .net".split("\n");
for (int i = 0; i < lines.length; i++) {
    Toast.makeText(this, lines[i], Toast.LENGTH_SHORT).show();
}


这篇关于如何显示路线信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆