Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #12648

我还有itisincorrectexpression?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From gearss8888@gmail.com
Newsgroups comp.lang.java.programmer
Subject 我还有itisincorrectexpression?
Date Sat, 3 Mar 2012 20:30:54 -0800 (PST)
Organization http://groups.google.com
Lines 20
Message-ID <21720956.0.1330835454163.JavaMail.geo-discussion-forums@ynlx40> (permalink)
NNTP-Posting-Host 58.248.7.134
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1330835454 869 127.0.0.1 (4 Mar 2012 04:30:54 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Sun, 4 Mar 2012 04:30:54 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=58.248.7.134; posting-account=K-H6MAoAAACf2uYihr0AgxpxKwbxYLCt
User-Agent G2/1.0
Xref csiph.com comp.lang.java.programmer:12648

Show key headers only | View raw


I donot know why the following program cannot work, it says "keysTocutBysections = {{}}" is incorrect expression. please help.



public class GetAllContent {
    String address;
    String[][] keysTocutBysections;
    public String GetAllCont (String addr, String keyword) {
        address = addr;
        if (address.indexOf("9") != -1) {
            keysTocutBysections = {{}};
        }
        return "0";
    }
    public static void main(String[] args) {
        GetAllContent xx = new GetAllContent();
        xx.GetAllCont("99", "0");
        
    }
}

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

我还有itisincorrectexpression? gearss8888@gmail.com - 2012-03-03 20:30 -0800
  Re: 我还有itisincorrectexpression? Lew <noone@lewscanon.com> - 2012-03-03 23:34 -0800
  Re: ???itisincorrectexpression? Roedy Green <see_website@mindprod.com.invalid> - 2012-03-04 13:14 -0800

csiph-web