亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

求java大神用正則表達式方法分割此英語短文

求java大神用正則表達式方法分割此英語短文

a黃金羅奇 2016-05-07 21:00:04
Failure is probably the fortification in your pole. It is like a peek your wallet as the thief, when you are thinking how to spend several hard-won lepta, when you are wondering whether new money, it has laid background. Because of you, then at the heart of the most lax, alert, and most low awareness, and left it godsend failed.//split.("__________________________________");求解?。?!
查看完整描述

2 回答

已采納
?
qq_青棗工作室_0

TA貢獻446條經驗 獲得超754個贊

public?class?Main?{
	public?static?void?main(String[]?args)?{
		String?str?=?"Failure?is?probably?the?fortification?in?your?pole.?It?is?like?a?peek?your?wallet?as?the?thief,?when?you?are?thinking?how?to?spend?several?hard-won?lepta,?when?you?are?wondering?whether?new?money,?it?has?laid?background.?Because?of?you,?then?at?the?heart?of?the?most?lax,?alert,?and?most?low?awareness,?and?left?it?godsend?failed.";
		
		String[]?words?=?str.split("[^\\w\\-]+");
		for(String?w?:?words)?{
			System.out.println(w);
		}
	}
}


查看完整回答
1 反對 回復 2016-05-07
  • 2 回答
  • 0 關注
  • 1836 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號