首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > multiinterfaces.zipgbuffer Searchme =新的StringBuffer(

multiinterfaces.zipgbuffer Searchme =新的StringBuffer(

  • 资源大小:672.00 B
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: Java Develop java

资 源 简 介

multiinterfaces.zipgBuffer searchMe = new StringBuffer( "peter piper picked a peck of pickled peppers") int max = searchMe.length() int numPs = 0 for (int i = 0 i < max i++) { //interested only in p s if (searchMe.charAt(i) != p ) continue //process p s numPs++ searchMe.setCharAt(i, P ) } System.out.println("Found " + numPs + " p s in the string.") System.out.println(searchMe) } } -multiinterfaces.zipgBuffer searchMe = n ew StringBuffer ( "peter piper picked a peck of p ickled peppers ") searchMe.length max = int () i nt = 0 numPs for (int i = 0 i

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.178127s