\. //匹配.
可以不用正则表达式这样就可以
try this
while(entry.charAt(0)==" ")
{
entry=entry.substring(1,entry.length) //去掉前面的空格
}
while(entry.charAt(entry.length-1)==" ")
{
entry=entry.substring(0,entry.length-1) //去掉后面的空格
}
可以不用正则表达式这样就可以
try this
while(entry.charAt(0)==" ")
{
entry=entry.substring(1,entry.length) //去掉前面的空格
}
while(entry.charAt(entry.length-1)==" ")
{
entry=entry.substring(0,entry.length-1) //去掉后面的空格
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货