用String的replaceAll("a","(a)");replaceAll("A","(A)");不就可以了。
解决方案 »
- 求资源:JDK 7 以及能与之兼容的eclipse软件
- 朋友们有weblogic9.2.0.0在AIX5.3平台上的bug补丁包吗
- html问题
- 有分拿~~~ 寻找函数~~~
- 菜鸟问题,高手帮忙
- 请问数据库ResultSet的问题?
- Java应用程序想转applet应该怎么做?
- 100分求一个基本问题一定给你:我编了一个Applet程序,然后在一个html中调用此类,然后一台远程机器调用此html时,我要把我的javade的class
- 如何将java的api集成到jbuilder中?
- 拉框放大问题
- 致初学者:一个面象对象的"hello world"程序.
- java如何识别一个字符串里面有没有中文字符?
用String的replaceAll("a","(a)");replaceAll("A","(A)");不就可以了。
==========================同意。
String str="Yahoo! ? Yahoo! Personals - It's time to give fate a nudge. Create your profile or search for free . ?Search for:? ? on the Web in Images in Yellow Pages? in News in Products ?? ? Advanced ? Preferences ? New! Easter Gift Center - baskets, candy, flowers, and more Shop Auctions , Autos , Classifieds , Real Estate , Shopping , Travel Find HotJobs , Maps , People Search , Personals , Yellow Pages Connect Chat , GeoCities , Greetings , Groups , Mail , Messenger , Mobile Organize ? Addresses , Briefcase , Calendar , My Yahoo! , PayDirect , Photos Fun Games , Horoscopes , Kids , Movies , Music , Radio , TV Info Finance , Health , News , Sports , Weather More Yahoo!... ? ? Newest Models ? ? Browse New SUVs ? ? Get a Price Quote ? ? Buy/Sell Used ? ? Blue Book Pricing ? ? Car Insurance Enter for a chance to win a new 2004 Isuzu Ascender ? Yahoo! Business Services ? ? Web Hosting ? ? Get a Domain ? ? Sell Online ? Market Online ? ? ? Yahoo! Premium Services ? ? Personal Web Site ? ? Fantasy Baseball ? ? Personals ? PC Games ? Web Site Directory - Sites organized by subject Suggest your site ? Business & Economy B2B , Finance , Shopping , Jobs ... Computers & Internet Internet , WWW , Software , Games ... News & Media Newspapers , TV , Radio ... Entertainment Movies , Humor , Music ... Recreation & Sports Sports , Travel , Autos , Outdoors ... Health Diseases , Drugs , Fitness ... Government Elections , Military , Law , Taxes ... Regional Countries , Regions , US States ... Society & Culture People , Environment , Religion ... Education College and University , K-12 ... Arts & Humanities Photography , History , Literature ... Science Animals , Astronomy , Engineering ... Social Science Languages , Archaeology , Psychology ... Reference Phone Numbers , Dictionaries , Quotations ... Buzz Index - Yahoo! Picks - New Additions - Full Coverage ?? Personal Assistant Sign In Get free email with Spam ...............
";
这么多,
我找的关键字系a(不驱分大小写)
只有找到三个就可以啦
你自己想一下吧,很简单的。