如何处理这个字符串??????????? 我想处理一个字符串如:ou=公司,ou=中国;我想只得到“公司,中国”这个串,也就是得到两个等号后面的字符组成的串,用java怎么处理,还请赐教!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Properties properties = new Properties(); properties.load(new FileInputStream(file)); String com=properties.get("com");a.properties文本中ou=公司,ou=中国这样写即可 public String getContent(String s){ String content=""; if(s.contains("=")){ String[] str=s.split("="); content=str[1]; } return content;} String t="ou=中国";t=t.substring(3); 求助 我应该将应用上传到哪里 java运行时报错。。。谁来帮下。。。 Timer奇怪问题 怎样用JAVA实现将拼音转化为汉字 除了用CharToByteConverter的方法外, Java还有什么方法读取字节流? 请问java多用于哪方面的? 关于多sql语句执行操作,有一条出现错误做回滚操作的问题 求助:想用java和SQL Server写个程序。 为什么inner class的super()中调用重写的函数就不能得到外部类中的成员? 高手请进,在线等待。 关于字符串取值的问题 为什么Random这么慢?
properties.load(new FileInputStream(file));
String com=properties.get("com");
a.properties文本中
ou=公司,ou=中国这样写即可
String content="";
if(s.contains("=")){
String[] str=s.split("=");
content=str[1];
}
return content;
}
t=t.substring(3);