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: =?UTF-8?B?5oiR6L+Y5pyJaXRpc2luY29ycmVjdGV4cHJlc3Npb27vvJ8=?= 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> 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 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"); } }