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


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

why it is incorrect expression?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From gearss8888@gmail.com
Newsgroups comp.lang.java.programmer
Subject why it is incorrect expression?
Date Sat, 3 Mar 2012 20:31:52 -0800 (PST)
Organization http://groups.google.com
Lines 20
Message-ID <2998495.1917.1330835512013.JavaMail.geo-discussion-forums@ynlw24> (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 1330835512 1445 127.0.0.1 (4 Mar 2012 04:31:52 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Sun, 4 Mar 2012 04:31:52 +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:12649

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

why it is incorrect expression? gearss8888@gmail.com - 2012-03-03 20:31 -0800
  Re: why it is incorrect expression? markspace <-@.> - 2012-03-03 22:44 -0800

csiph-web