Linked List stuff that is hard for me and i need help with

okay i made this arrayList made up of LinkedLists as printed below. Problem is when i add stuff to them as shown in my STUFF FOR ADDING section, it just simply dosent add anything cause whin I print with System.out.println(listOfLists); it's all just empty. can anyone help me with this?
ArrayList listOfLists = new ArrayList();
                    for (int ix = 0; ix < numBehaviors; ix++) {
                    listOfLists.add(new LinkedList());
STUFF FOIR ADDING
                         ((java.util.List) listOfLists.get(0)).add("hi");
                         ((java.util.List) listOfLists.get(1)).add("this");
                         ((java.util.List) listOfLists.get(2)).add("is");
                         ((java.util.List) listOfLists.get(2)).add("a");
                         ((java.util.List) listOfLists.get(2)).add("test");

prints "[[hi], [this], [is, a, test]]" for me. the problem has to be in the code you haven't posted.

Similar Messages

  • FormsCentral retiring in July???!!!  Are you freaking kidding me?  My clients use this feature all the time.  What do you suggest I do now?  What service do I go with that is comparable to it?  I need help with this asap!

    FormsCentral retiring in July???!!!  Are you freaking kidding me?  My clients use this feature all the time.  What do you suggest I do now?  What service do I go with that is comparable to it?  I need help with this asap!

    I would suggest checking out http://www.logiforms.com. They have really good PDF support for both hosted PDF's and generating PDFs. You can:
    populate PDF forms from a web form submission
    Merge multiple PDF's together using conditional logic
    Include uploaded images in the generated PDF
    Get Electronic signatures on PDF's
    Use conditional logic when creating PDF's
    Convert HTML to PDF. You design in HTML and CSS and use form field wildcards and generate the PDF
    More of the PDF features are explained here:
    PDF Form Creator | PDF Form Maker | V3.Logiforms.com
    They are also offering a 25% discount to anyone coming from Forms Central...

  • I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    Yea I am. I deleted Logic Pro 9 and moved the App to the Trashcan like normal. Then when I go to install it, it says its already Installed. When I do this with other apps; it works fine, the install thing comes back up like it should once you have deleted the app

  • I have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest from itouch to laptop please??

    i have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest of the songs (from my cd's) from itouch to laptop please??

    See this previous discussion:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • HT5699 The country I am living in is not on the Apple Contact Support list and I need help with my security questions.

    I am currently living in Tunisia but it's not on the Apple Contact Support list. I need help with my security questions which I cannot remember the answers. There is no link to send a reset email. What do I do?

    Click here and ask the iTunes Store staff for assistance.
    (114040)

  • I have sync'd my new ipad with my itunes library on my computer and it says the sync is complete and everything dandy.  However, when I launch itunes on the ipad and select the music tab, all I see is the new stuff that is avaiable for sale and download.

    Where is my actual library of music on my Ipad?  Its right here in my face on my computer (hundred's of songs) but nowhere to be found on the ipad despite syncing the device.  *** ?   SUPER-frustrating !!

    If your ipad music bought via iTunes that you can transfer the music back to computer.It supports all apple device included ipad.You need exchange a new hard-disk drive,and sync music files again.
    Besides what mentioned above, you also refer this article about how to transer or sync iPad contents to computer.
    Hope that it can do your a favor.

  • Where can I download fcp rescue for 4.5 or need help with crashing

    Hi guys,
    I'm still running 4.5 and haven't had a lot of problems with it in the past 2 years. I can't get the program to open today however. It keeps getting stuck on "profiling for rt extreme". I've trashed all the preferences, rebooted, and searched this forum for answers, but am still having problems.
    In one post I found a link for fcp rescue, but it looks like they've taken off old versions of the program. I can only download for fcp 5.
    Does anyone know where I could still download this program from FCP 4.5? or Can anyone suggest trying something other than trashing preferences or reinstalling?

    FCP Rescue for Four and 4.5 are the same program.
    As to your issue, I'd make sure you don't have any errant USB/FW devices plugged in. And I believe you get the Profiling for RT Extreme when there are no preferences, so it would seem that you've done that part right...
    Patrick

  • Hard drive crash... need help with i Tunes....

    Hello all,
    Here is the problem. A couple of weeks ago my girlfriend's hard drive crashed. I was able to pull her hard drive out and slave it to mine, in order to save her docs/pics/I-tunes. I got everything off and burned it to a couple of DVDs.
    My question is how do I get those music files (the ones I recovered) back on to her new computer?
    Thanks,
    Jason
      Windows XP  
    PS. Her i-Pod does have all of her music files... If that matters...

    There's a program called PodUtil (http://www.kennettnet.co.uk/software/podutil.php)-the trial works, you don't have to buy it. And you can get all of the songs/videos from your girlfriend's iPod and move it to a designated folder, once you do that, simply add folder to iTunes. Hope I helped...post questions if you have any.

  • I'm failing to get a Javascript to run in Firefox that runs great in IE...need help with debugging.

    I'm getting the error below but don't know what to do about it since I can't code Javascript. As I state before, IE runs this code just fine...I can't figure out why Firefox won't let it run. This cascading menu .js is just what I need for a charity website I'm helping to set up. The html portion is also shown below the .js
    Error: menu is undefined
    Source File: file:///C:/Documents%20and%20Settings/Ray/My%20Documents/ECCHS_Website/CascadeMenu.js
    Line: 8
    Here's the code for CascadeMenu.js
    <pre><nowiki> function InitMenu()
    var bar = menuBar.children
    for(var i=0;i < bar.length;i++)
    var menu=eval(bar[i].menu)
    menu.style.visibility = "hide"
    bar[i].onmouseover = new Function ("ShowMenu("+bar[i].id+")")
    var Items = menu.children
    for(var j=0; j<Items.length; j++)
    var menuItem = eval(Items[j].id)
    if(menuItem.menu != null)
    menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'>4</Span>"
    //var tmp = eval(menuItem.id+"_Arrow")
    // tmp.style.pixelLeft = menu.getBoundingClientRect().Right //- tmp.offsetWidth - 15
    FindSubMenu(menuItem.menu)}
    if(menuItem.cmd != null)
    menuItem.onclick = new Function("Do("+menuItem.id+")") }
    menuItem.onmouseover = new Function("highlight("+Items[j].id+")")
    function FindSubMenu(subMenu)
    var menu=eval(subMenu)
    var Items = menu.children
    for(var j=0; j<Items.length; j++)
    menu.style.visibility = "hidden"
    var menuItem = eval(Items[j].id)
    if(menuItem.menu!= null)
    menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'>4</Span>"
    // var tmp = eval(menuItem.id+"_Arrow")
    //tmp.style.pixelLeft = 35 //menuItem.getBoundingClientRect().right - tmp.offsetWidth - 15
    FindSubMenu(menuItem.menu)
    if(menuItem.cmd != null)
    menuItem.onclick = new Function("Do("+menuItem.id+")") }
    menuItem.onmouseover = new Function("highlight("+Items[j].id+")")
    function ShowMenu(obj)
    HideMenu(menuBar)
    var menu = eval(obj.menu)
    var bar = eval(obj.id)
    bar.className="barOver"
    menu.style.visibility = "visible"
    menu.style.pixelTop = obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop
    menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft
    function highlight(obj)
    var PElement = eval(obj.parentElement.id)
    if(PElement.hasChildNodes() == true)
    { var Elements = PElement.children
    for(var i=0;i<Elements.length;i++)
    TE = eval(Elements[i].id)
    TE.className = "menuItem"
    obj.className="ItemMouseOver"
    window.defaultStatus = obj.title
    ShowSubMenu(obj)
    function Do(obj)
    var cmd = eval(obj).cmd
    window.navigate(cmd)
    function HideMenu(obj)
    if(obj.hasChildNodes()==true)
    var child = obj.children
    for(var j =0;j<child.length;j++)
    if (child[j].className=="barOver")
    {var bar = eval(child[j].id)
    bar.className="Bar"}
    if(child[j].menu != null)
    var childMenu = eval(child[j].menu)
    if(childMenu.hasChildNodes()==true)
    HideMenu(childMenu)
    childMenu.style.visibility = "hidden"
    function ShowSubMenu(obj)
    PMenu = eval(obj.parentElement.id)
    HideMenu(PMenu)
    if(obj.menu != null)
    var menu = eval(obj.menu)
    menu.style.visibility = "visible"
    menu.style.pixelTop = obj.getBoundingClientRect().top + Bdy.scrollTop
    menu.style.pixelLeft = obj.getBoundingClientRect().right + Bdy.scrollLeft
    if(menu.getBoundingClientRect().right > window.screen.availWidth )
    menu.style.pixelLeft = obj.getBoundingClientRect().left - menu.offsetWidth
    ///////////////////CascadedDropdown Menu/////////////////
    //Date : 08/09/2001 //
    //Version : 1.0 //
    //Author Mr.Arun N Kumar //
    //EMail: [email protected] //
    // Modifications on this code is not recomended
    // Suggestions are welcome
    <html>
    <head>
    <link href="CascadeMenu.css" rel="stylesheet">
    <script language="javascript" src="CascadeMenu.js">
    </script>
    </head>
    <body OnLoad="InitMenu()"
    Onclick="HideMenu(menuBar)" ID="Bdy"
    bgColor=aliceblue>
    <font color="#6B8174"><b> East Contra Costa
    Historical<br>Society Content Menus</b></font><div
    align="center">
    <DIV Id="menuBar" class="menuBar" >
    <DIV Id="Bar1" class="Bar" menu="menu1">Menu
    #1</DIV>
    <DIV Id="Bar2" class="Bar" menu="menu2">Menu
    #2</DIV>
    <DIV Id="Bar3" class="Bar" menu="menu3">Menu
    #3</DIV>
    <DIV Id="Bar4" class="Bar" menu="menu4">Menu
    #4</DIV></center>
    </DIV>
    <!--MenuItem Definition -->
    <div Id="menu1" class="menu" >
    <div Id="menuItem1_1" class="menuItem"
    menu="menu6">SubMenu
    #1</div>
    <div Id="menuItem1_2" class="menuItem"
    title="JavaScripts"
    cmd="http://javascript.internet.com/">JavaScript
    Source</div>
    <div Id="menuItem1_3" class="menuItem"
    title="WDVL"
    cmd="http://www.wdvl.com">WDVL</div>
    </div>
    <div Id="menu2" class="menu">
    <div Id="menuItem2_1" class="menuItem">Page
    #1</div>
    <div Id="menuItem2_2" class="menuItem">Page
    #2</div>
    <div Id="menuItem2_3" class="menuItem">Page
    #3</div>
    </div>
    <div Id="menu3" class="menu">
    <div Id="menuItem3_1" class="menuItem">Page
    #1</div>
    <div Id="menuItem3_2" class="menuItem">Page
    #2</div>
    <div Id="menuItem3_3" class="menuItem">Page
    #3</div>
    <div Id="menuItem3_4" class="menuItem"
    menu="menu5">SubMenu
    #4</div>
    </div>
    <div Id="menu4" class="menu">
    <div Id="menuItem4_1" class="menuItem">Page
    #1</div>
    <div Id="menuItem4_2" class="menuItem">Page
    #2</div>
    <div Id="menuItem4_3" class="menuItem">Page
    #3</div>
    <div Id="menuItem4_4" class="menuItem">Page
    #4</div>
    </div>
    <div id="menu5" class="menu">
    <div Id="menuItem5_1" class="menuItem">Page
    #4-1</div>
    <div Id="menuItem5_2" class="menuItem">Page
    #4-2</div>
    <div Id="menuItem5_3" class="menuItem">Page
    #4-3</div>
    </div>
    <div id="menu6" class="menu">
    <div Id="menuItem6_1" class="menuItem">Page
    #1-1</div>
    <div Id="menuItem6_2" class="menuItem">Page
    #1-2</div>
    <div Id="menuItem6_3" class="menuItem"
    menu="menu7">SubMenu
    #1-1</div>
    </div>
    <div id="menu7" class="menu">
    <div Id="menuItem7_1" class="menuItem">Page
    #1-1-1</div>
    <div Id="menuItem7_2" class="menuItem">Page
    #1-1-2</div>
    <div Id="menuItem7_3" class="menuItem">Page
    #1-1-3</div>
    </div><!-- End of Menu --><br>
    </body>
    </html></nowiki></pre>

    I found a download of Cascade Menu with files from 2001. I also found a discussion thread as of 2006 indicating problems with the script in Firefox as of that time ([http://www.webdeveloper.com/forum/archive/index.php/t-94019.html Menubar Script problem in FireFox [Archive] - WebDeveloper.com]). The web and web browsers have changed a lot during the past decade, so you might find it more efficient to get a new menu script than to fix this old one. (It might not even work in IE9 any more...)

  • I recently got a used iPod touch from a relative. Version 3.1.3.  She does not remember her restrictions passcode and I need help with that.  Also, my iTunes does not recognize it.  Someone please help me.

    I Recently got a used iPod touch, version 3.1.3.  I do not know how to reset everything.  First I have tried to reset all settings, but it asks for restriction code.  Also, my iTunes does not recognize it.  Please help!

    Thanks King_Penguin for taking time to read and reply. 
    I just purchased this movie on Thursday, May 15, so just a few days ago.  I have never had any trouble whatsoever since I have been in Vietnam.  I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase. 
    Sorry, I don't quite understand what you mean by studios and different versions.  Could you please explain? 
    I checked my purchased list in my purchase history under my account and there are no hidden items. 

  • Need help with duplicate print jobs over network that I can't cancel

    I have the Photosmart Premium All-in-One on my home network.  My kids who each have laptop running Windows 7 and are connected via wireless to the printer via a DLINK DIR-655.
    They hit the print button too many times and it keeps printing over and over again.
    Is there a way to get the printer to stop printing these duplicates.  I tried turning off/on but they just keep printing.
    We're wasting paper/ink and I need help with a solution.
    Please let me know.  Thanks.
    Angelo

    There should be a button with a red 'X' on it on the front of the printer.  This is the print cancel button.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • I need help with re installing my apple account for itunes.

    Had problems with my itune account, so I uninstalled and now need help with re-installing the program with the songs I have already purchased.

    Your iTunes account is something at the iTunes Store online.  It is not possible to uninstall it.  Do you mean the iTunes application?  Even if you delete the application and restore it, it should not have deleted your iTunes library (essentially the contents of the iTunes folder in Music) on your computer unless you did a separate steep and specifically deleted that too.  You need to tell us what it was you deleted.

  • I have the latest version of Apple TV. I buy videos off iTunes.  I subscribe to iCloud.  Yet so many times when I try and access the stuff that I paid for via the device that I paid through the cloud that I paid for - I can't

    I only get the message that I can't access iTunes and to try again later. Every time I try later I get the sam message. What am I doing wrong? Why buy all this stuff if it doesn't work? Apple has an incredible reputation, but you stuff that doesn't work, and how do you get someone to sort it for you as per any company who sold you a series of stuff that didn't work. Who do I call? What do I do?  I just want the stuff that I paid for to work.  Is this unreasonable?  Is there a consumer regulatory group that anyone can recommend that could approach about stuff that you buy that doesn't work?

    you dont need computer. go to settings > icloud and turn off what you dont want like photostream/calendars/contacts. for itunes 11.1 you need to go to itunes.com and download it then install it.

  • I need help with circular linked list

    Hi,
    I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
    -> 9 -> 3 -> 7
    empty false
    9
    empty false
    3
    -> 7
    empty false
    Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
    Thanks.This is my code
    / A circular linked list class with a dummy tail
    public class CLL{
         CLLNode tail;
         public CLL( ){
              tail = new CLLNode(0,null); // node to be dummy tail
              tail.next = tail;
         public String toString( ){
         // fill this in. It should print in a format like
         // -> 3 -> 5 -> 7
    if(tail==null)return "( )";
    CLLNode temp = tail.next;
    String retval = "-> ";
         for(int i = 0; i < -999; i++)
    do{
    retval = (retval + temp.toString() + " ");
    temp = temp.next;
    }while(temp!=tail.next);
    retval+= "";}
    return retval;
         public boolean isEmpty( ){
         // fill in here
         if(tail.next == null)
              return true;
         else{
         return false;
         // insert Token tok at end of list. Old dummy becomes last real node
         // and new dummy created
         public void addAtTail(int num){
         // fill in here
         if (tail == null)
                   tail.data = num;
              else
                   CLLNode n = new CLLNode(num, null);
                   n.next = tail.next;
                   tail.next = n;
                   tail = n;
         public void addAtHead(int num){
         // fill in here
         if(tail == null)
              CLLNode l = new CLLNode(num, null);
              l.next = tail;
              tail =l;
         if(tail!=null)
              CLLNode l = new CLLNode(num, null);
              tail.next = l;
              l.next = tail;
              tail = l;
         public int removeHead( ){
         // fill in here
         int num;
         if(tail.next!= null)
              tail = tail.next.next;
              //removeHead(tail.next);
              tail.next.next = tail.next;
         return tail.next.data;
         public static void main(String args[ ]){
              CLL cll = new CLL ( );
              cll.addAtTail(9);
              cll.addAtTail(3);
              cll.addAtTail(7);
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
    class CLLNode{
         int data;
         CLLNode next;
         public CLLNode(int dta, CLLNode nxt){
              data = dta;
              next = nxt;
    }

    I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
    for(int i = 0; i < -999; i++)That says:
    1) Initialize i to 0
    2) while i is less than -999, do something
    Since it is initially 0, it will never enter that loop body.

  • Does anyone know of a simple to do list app that syncs between an iPhone and a Mac?

    Does anyone know of a simple to do list app that syncs between an iPhone and a Mac?

    Not sure exactly what you are going for...
    You're aware you need to use iTunes to sync apps between your iPhone and Mac unless you are running V10.7.2 and have iCloud setup.
    BTW...  apps that are optimized for an iPhone will not run on the Mac OS X and vice versai, two different operating systems.
    It really helps to tell us which Mac OS X you have installed when you post for help. Thanks!

Maybe you are looking for

  • My ipod safari can't open links or press buttons.

    Like for instance,I tried to press one of the episodes from http://www.justanimedubbed.tv/watch/adventure-time/ and it won't let me.When I press it,it doesn't do anything...And even if I type the specific URL for the episode,it won't let me watch the

  • Cant get Skype to work anymore

    Several months ago I got an email with an update option.  Every since I did the update, I can no longer use skype.  As soon as I log on, I get a message that says, Skype has quit working.  Microsoft will look in to the problem and get back to you. It

  • Local Host certificate expired, what do I do next?

    I just started to recieve these emails, and I have read on here that I can ignore it, and all will be fine. Is this true? System Administrator ✆ [email protected] The following certificate is about to expire on your server, macserver.local:        Na

  • EPCM.getSAPTop().LSAPI.AFPPlugin is null or not an object

    Hello Guys, I am doing customization of AJAX Framework Page in Portal 7.3. I have created a copy of default ajax framework modify it and and my custom page and desktop, and add a new entry in the master rule to use the custom ajax framework page but

  • OSA : Addition of header data.

    Hi, We are implementing Obj settings and Appraisal in SAP 4.7 and using this service in EP Business pack 60.1.5. We have added "Part Appraisers" and "Further Participants" and it's working fine.Apart from the Part Appraiser and Futher Participants,we