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


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

why it is incorrect expression?

From gearss8888@gmail.com
Newsgroups comp.lang.java.programmer
Subject why it is incorrect expression?
Date 2012-03-03 20:31 -0800
Organization http://groups.google.com
Message-ID <2998495.1917.1330835512013.JavaMail.geo-discussion-forums@ynlw24> (permalink)

Show all headers | 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