日期:2014-05-20  浏览次数:20748 次

刚开始学习JAVA,请将一个很基础的问题?
操作字符串有这样一个方法吗,   split(),请问这个方法是什么意思?该怎样使用?

------解决方案--------------------
無語...
------解决方案--------------------
给大家推荐个

好的技术群  大家一起学习啊

30178567
------解决方案--------------------
根据匹配给定的正则表达式来拆分此字符串
------解决方案--------------------
J2ME培训视频录像~~J2ME开发现在是金饭碗,急需迅速入门和提高项目开发经验的进~~


1.J2ME手机游戏开发(李强 20学时 avi格式)
本培训录像主要讲解J2ME和游戏开发的基本知识,通过几个完整的游戏实例开发过程和实例分析告诉大家,在手机游戏开发中要注意哪些问题,会经常使用哪些技巧。这个课程一共用到了12个大小不同的游戏开发实例,其中包括4个比较完整的手机游戏。这些实例不但具有趣味性,而且具有很强的针对性,我们能够通过它们重点学习和掌握相应的技能。

2.J2ME移动开发与实例(唐大仕 12学时 avi格式)
通过本课程的学习,学员将具有J2ME开发的理论基础和实际设计经验,可以快速进入移动应用的领域,在企业中进行J2ME手机程序的实际开发工作。

另赠送:
*使用eclipse开发J2ME应用程序实录
*J2ME在诺基亚平台上应用开发讲座
*针对J2ME的SIP和Web Services的应用开发讲座
*J2ME(Eclipse+Tomcat+EclipseME)开发手机与互联网进行通信视频录像
*魔塔游戏、连连看游戏、星座程序源代码(J2ME开发)

需要的联系:
QQ:421130479
------解决方案--------------------
split的其中之一方法
public String[] split(String regex)
Splits this string around matches of the given regular expression.
根据与所提供的正则表达式模式相匹配的字符串来分割字符串

例子如下
The string "boo:and:foo ", for example, yields the following results with these expressions:

Regex Result
: { "boo ", "and ", "foo " }
o { "b ", " ", ":and:f " }



------解决方案--------------------
split:


public String[] split(String regex)
Splits this string around matches of the given regular expression.
This method works as if by invoking the two-argument split method with the given expression and a limit argument of zero. Trailing empty strings are therefore not included in the resulting array.

The string "boo:and:foo ", for example, yields the following results with these expressions:

Regex Result
: { "boo ", "and ", "foo " }
o { "b ", " ", ":and:f " }


Parameters:
regex - the delimiting regular expression
Returns:
the array of strings computed by splitting this string around matches of the given regular expression
Throws:
PatternSyntaxException - if the regular expression 's syntax is invalid
------解决方案--------------------
是用来拆分字符串的,你可以找Java的技术文章看看,是怎么用的。

------解决方案--------------------
下载个JDK帮助文档
类和方法的用法里面都有
------解决方案--------------------
英语不好的话下个中文API 新翻译的不错,我正在用..英语实在太差..呵呵
------解决方案--------------------
路过~