20世纪中国最后的残酷"width=133heihgt=69border="0"/></a></td> <tdwidth="150"align="center"><ahref="http://news.sina.com.cn/s/p/2007-04-10/111912742782.shtml"target="_blank"><imgsrc="http://image2.sina.com.cn/dy/s/p/2007-04-10/U1043P1T1D12742782F21DT20070410111948_small_133.jpg"alt="图文:老黄在露天召集各分点的负责人开会
我要把”20世纪中国最后的残酷"后面的全部过滤掉
我要把”20世纪中国最后的残酷"后面的全部过滤掉
public class StringSplit {
public static void main(String args[]){
String str = "20世纪中国最后的残酷\"width=dsadasdasdasda34234";
String[] strArray = str.split("\"width");
System.out.print(strArray[0]);
}
}
20世纪中国最后的残酷
s.substring(0, s.indexOf("\""));