Remove method: push in the right direction

Hello everybody. I am new to java and programming all together ( i have been programming for about 3 weeks or so). I am sorry if the question is simple. I seem to be having a problem with remove function.
Basically I have class Task(which has an ID, brief description, dueDate etc...). I also have a task TaskList as well as a class Date . The taskList has attributes an array of type Task with a length of 10. It also has methods to add, remove tasks as well as display the arrays contents. The remove method is what is causing me problems.
My general thinking was to find the arraycell containing the reference that points to the taskId that is to be removed. Afterwards I wanted to assign a null value to the cell containing the task to be removed. Then i would begin by swapping references until the null value is in a way where the array has no wholes in it.
I have tried different variations of the same logic but either it does absolutely nothing, either I get a nullpointer exception. I am not looking for an explicit answer, just a nudge in the right direction. Is the general idea I proposed earlier worth anything. Can I affect a null value to an arraycell containing a reference to an object.
Thank you in advance for any help.
P.S: Again I apologize, for I know this must be a question that keeps coming up over and over...
Oh, before I forget, are there any good textbooks that explain ina detailed manner class relationships, particularly dependancy, aggregation and inheritance.

Why not use a List instead? Lists are dynamic, i.e. they can add or remove
elements anywhere, closing the gap (i.e. there's no need to stuff nulls in there).
Something like this:public class TaskList {
   private List l= new ArrayList();
   public void add(Task t) { l.add(t); }
   public boolean remove(Task t) { return l.remove(t); }
   // all the other functionality you want goes here ...
}kind regards,
Jos

Similar Messages

  • I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Thanks

    I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Ps thanks apple for ur ignorance

    I have the same problem with another TeamLava app, Fashion Story.

  • I need better performance from my computer. Could someone point me in the right direction?

    I do a lot of video editing for work. I am currently using the Creative Cloud, and the programs I use most frequently are Premiere Pro CS6, Photoshop CS6, and Encore. My issue is that when I am rendering video in Premiere Pro, and most importantly, transcoding in Encore for BluRay discs, I am getting severe lag from my computer. It basically uses the majority of my computer's resources and doesn't allow me to do much else. This means, that I can't do other work while stuff is rendering or transcoding. I had this computer built specifically for video editing and need to know which direction to go in for an upgrade to get some better performance, and allow me to do other work.
    For the record, I do have MPE: GPU Acceleration turned ON, and I have 12GBs of RAM alloted for Adobe in Premiere Pro's settings, and 4GBs left for "other".
    Here is my computer:
    - Dell Precision T7600
    - Windows 7 Professional, 64-bit
    - DUAL Intel Xeon CPU E-2620 - 2.0GHz 6-core Processors
    - 16GBs of RAM
    - 256GB SSD as my primary drive. This is where the majority of my work is performed.
    - Three 2TB secondary drives in a RAID5 configuration. This is solely for backing up data after I have worked on it. I don't really use this to work off of.
    - nVidia Quadro 4000 2GB video card
    When I am rendering or transcoding, my processor(s) performance fluctuates between 50%-70%, with all 12 cores active and being used. My physical memory is basically ALL used up while this is happening.
    Here is where I am at on the issue. I put in a request for more RAM (32GBs), this way I can allot around 25GBs of RAM to the Adobe suite, leaving more than enough to do other things. I was told that this was not the right direction to go in. I was told that since my CPUs are working around 50-70%, it means that my video card isn't pulling enough weight. I was told that the first step in upgrading this machine that we should take, is to replace my 2GB video card with a 4GB video card, and that will fix these performance issues that I am having, not RAM.
    This is the first machine that has been built over here for this purpose, so it is a learning process for us. I was hoping someone here could give a little insight to my situation.
    Thanks for any help.

    You have a couple of issues with this system:
    Slow E5-2620's. You would be much better off with E5-2687W's
    Limited memory. 32 GB is around bare minimum for a dual processor system.
    Outdated Quadro 4000 card, which is very slow in comparison to newer cards and is generally not used when transcoding.
    Far insufficient disk setup. You need way more disks.
    A software raid5 carries a lot of overhead.
    The crippled BIOS of Dell does not allow overclocking.
    The SSD may suffer from severe 'stable state' performance degradation, reducing performance even more.
    You would not be the first to leave a Dell in the configuration it came in. If that is the case, you need a lot of tuning to get it to run decently.
    Second thing to consider is what source material are you transcoding to what destination format? If you start with AVCHD material and your destination is MPEG2-DVD, the internal workings of PR may look like this:
    Convert AVCHD material to an internal intermediate, which is solely CPU bound. No GPU involvement.
    Rescale the internal intermediate to DVD dimensions, which is MPE accelerated, so heavy GPU involvement.
    Adjust the frame rate from 29.97 to 23.976, which again is MPE accelerated, so GPU bound.
    Recode the rescaled and frame-blended internal intermediate to MPEG2-DVD codec, which is again solely CPU bound.
    Apply effects to the MPEG2-DVD encoded material, which can be CPU bound for non-accelerated effects and GPU bound for accelerated effects.
    Write the end result to disk, which is disk performance related.
    If you export AVCHD to H.264-BR the GPU is out of the game altogether, since all transcoding is purely CPU based, assuming there is no frame blending going on. Then all the limitations of the Dell show up, as you noticed.

  • Can anyone point me in the right direction for the link to download Acrobat 9 Standard?  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Can anyone point me in the right direction for the link to download Acrobat 9 Standard.  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Hi,
    Standard or Pro would be licensed through your serial number, the download link and downloaded file would be the same for both of them.
    Pro or Standard would be determined after you put in your serial number.
    Download Acrobat products | 9, 8
    Thank You
    Arjun

  • Need to be pointed in the right direction for buttons

    Hello,
       I'm trying to figure out if this can be done.    Lets say you have 3 buttons on a web page.  When you hit one of the 3 buttons, text appears and locks on the page.  Each button has different texts that appears and locks.  No matter what order a person hits a button. The texts for that button appears.
       I'm not sure how to do this.  I know how to link buttons and send it to different parts of the timeline, just don't know how this would work.
    any help to be pointed in the right direction would be great.
         Thanks in advance,
            Peter

    Hi Ned,
            If I make a movie clip for each button (3 total) and each button has its own text.  If I have all three layers on top of each other it will play all the text at once.  That something I don't want.  If I spread the layers so there not on top of each other.  I can code it to have the text appear when the button is press but, only one set of text will appear at a time.  What I would like is once the button is pressed and the text fades in it locks in place.  If you press another button, that button texts fades in and locks.  The text from the other button stays locked
           Other Idea I had was when your working with buttons, and double click on it to get the "up-over-down-hit" on the timeline.  on the over part, I know how to put text in that way.  is there a way to lock it once the mouse goes on the "over" part of the button ????
       Thanks,
         Peter

  • Hi, I need a video editing software for my Power Mac G5 system. Hunted all over for one! Can anyone help me and point me in the right direction. Everything I come across is for intel based systems. Many thanks in advance.

    Hi, I need a video editing software for my Power Mac G5 system. Hunted all over for one! Can anyone help me and point me in the right direction. Everything I come across is for intel based systems. Many thanks in advance.

    I have Final Cut Studio V1 - the PPC/Intel V5/5.1 cross-grade version, which would suit your requirements perfectly. (I have it for sale at present down here).
    If you keep looking, you're sure to find a similar second hand copy in your area, without the need to upgrade your graphics card.
    I'd go for Final Cut Pro as above over any version of Express. FCP has the full version of LiveType - not the truncated version that was released later on.

  • Hi guys i had been an iPhone 5 user for about 3 years and i have recently swapped over to a samsung s4 i dont know if this was a good idea any assistance or light in the right direction would be appreciated?

    Hi guys i had been an iPhone 5 user for about 3 years and i have recently swapped over to a samsung s4 i dont know if this was a good idea any assistance or light in the right direction would be appreciated?

    Sorry i correct myself i had been an iPhone user for about 3 years. My last Apple iPhone was an iPhone 5. I am getting used to things with the Samsung but really think the extra features such as smart stay and scroll are coverting humans into robots. The configuration of the features is also difficult as it detects your eye movement so if the movement is out of place even the slightest the feature will not function. I think the ios user interface is simple in comparison to the android user interface. Any views are appreciated? I have many friends also using HTC and prefer it in comparison to the iPhone and Galaxy but as raymond73 mentioned choice is a wonderful thing.

  • I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    If you are using File Vault, turn it off.  To find out where all the extra space is use any of these products - Disk Inventory X
    OmniDiskSweeper
    WhatSize
    SpaceControl

  • Printing is pushed off the right side of the page

    I uninstalled and reinstalled the printer driver on my epson 1400. No matter what size I try to print, everything is pushed off the right side of the page. This is only happening in photoshop. I am using a mac G4 on os x 10.4.11  Maybe someone else has had this problem. Thank you for your time.

    Russellohfive wrote:
    …then walah! …
    Is that an Islamic incantation?    Or did you mean voilà?
    Just kidding.    Glad you're up and running.
    voilà
       Also found in: Wikipedia
    0.03 sec.
    voi·là
    (vwä-lä)
    interj.Used to call attention to or express satisfaction with a thing shown or accomplished: Mix the ingredients, chill, andvoilà!a light, tasty dessert.
    [French : voi, second person sing. imperative of voir, to see (from Old French; see voyeur) + là, there (from Old French la, lai, probably from Latin illc, by that way : ill; see al-1 in Indo-European roots + -ce, deictic particle).]
    The American Heritage® Dictionary of the English Language, Fourth Edition copyright ©2000 by Houghton M

  • I have an older airport express but don't know where to look to find its model number.  The version number is airport utility 6.3.4 (634.17).  Can anyone point me in the right direction?  Thanks.

    I have an older airport express, but don't know where to look to find its model number. 
    The version number is airport utility 6.3.4 (634.17). 
    Can anyone point me in the right direction?  Thanks.

    Hard to see it's so teeny. I needed a magnifying glass.
    FWIW, you should not mark your reply as Solved because you did not solve your question. Helpful and Solved are used to reward the user who help you or solved your problem.

  • When playing a home video DVD using DVD Player I tried to use the "Controls, Use current frame as jacket picture" facility to create a printable image but with no success. Can anybody point me in the right direction?

    When playing a home video DVD (created on my Panasonic DVD/Hard Disc recorder)  using the Mac DVD Player, I tried to use the "Controls, Use current frame as jacket picture" facility to create a printable image but with no success. I assume that any file created by this action would be stored somewhere in a common format but cannot find any such file. Can anybody point me in the right direction?

    Hi Sinious,
    Interesting to know about 10.8 and Flash. I'll hold off upgrading until they work together. Currently using 10.6.8 at home and same on the Universtity's computers.
    Haven't verified on Windows but shall do later in the week if I can get access to a Windows machine.
    Both the Flash player and the Projector come up not full screen, and if I leave it that way then things work OK as long as I don't make the video full screen (using the full screen button on the skin).
    However if I make the swf or projector full-screen (by using CMD-F or the menu option) then when I click on the menu item to take me to the page with the video on it, instead of a page with a smallish video and back button I get a black screen with no obvious controls. If I then press Escape I get my normal screen back and I am in the page that should have the video but there is not video and the back button does not work. So something wierd is going on here.
    If I make a file without any videos with a similar navigation structure everyting works ok except that when I go full screen I lose the finger cursor when I roll over my buttons (which is also wierd).

  • Can someone point in the right direction for how to make a multiplayer game over the internet

    Hello,
    I am looking into making a game where two people who can be in different places would log on to the app, log in and can play - i.e. they would be connected over the internet. I'm looking for a hint on what is the direction to take and which technologies.
    For example is there a best practice for example if you make an app with DirectX and C++, and you use some kind of web service or something? or is it easier using C# and XNA? just looking for some pointers in the right direction. I have played around
    with DirectX, far from proficient but have familiarity, I have no experience with XNA but hear it's less hardcore and easier going. I'm particularly interested in what the best way to connect over the internet.
    Thanks

    What you are asking is very complicated and one of the more difficult things you can do in gaming. I'd strongly recommend you start smaller to learn and then move up to multi-player games as your skills grow.
    From the multiplayer client perspective it doesn't really matter which technology you use. You can write a multiplayer game in any engine or technology that can talk to the network. Choose the client technology that you are most adept at and interested in
    and learn it. You can go straight to DX, use a third party library such as Monogame (XNA isn't supported for Windows Store apps), or a complete game engine such as Unity. Once you can write a decent one-player game you'll have the foundation to start on to
    build a two-player game.
    At that point you'll need to define the problem much more specifically. As you state it, it is really wide open. How do you want the users to connect? Directly machine to machine? Matched through a web server but running client side? Connecting to a game
    running on a remote server? Something else?
    The network connection itself is probably fairly straightforward, but where to connect and how to manage that can be difficult. You'll have to decide what properties you want. Is this an action game where responsiveness is important or
    a turn based game where timing is less relevant?
    Are the players connecting locally or completely remotely? If the former then they can probably connect directly over the local network (NFC is great here). If the latter then they probably will need to connect to a matchmaker service to avoid firewalls.
    This can get very complex, but there are existing solutions you can use rather than writing your own.
    --Rob

  • Divs seemed to be pushed to the right

    The divs containing two images and  unordered lists are pushed to the right of the div. The only thing I can think of is that the list even though the display is none is still pushing the text and image to the right.
    like so.
    What do you think?
    nsmcleaning.com

    Both lists in the container div. There are two divs within the container div tha t each contain a list. One is residential and the other is commercial. Thanks!

  • Hello I really want to start developing apps but have no knowledge of development I know it's one of those things you have to start somewhere and build on it but can someone point me in the right direction of where I should begin such as books etc

    Hello I really want to start developing apps but have no knowledge of development I know it's one of those things you have to start somewhere and build on it but can someone point me in the right direction of where I should begin such as books etc

    iOS or Mac apps?
    Have you paid the fee to sign up as a developer yet?
    Ken

  • Got wet while walking home in the rain it looks like everything is working fine except the touch screen ?can someone point me in the right direction to solve this problem or to get it fixed!

    Got wet walking home in the rain it looks like everything is working fine except the touch screen wont work. Can anybody point me in the right direction to solve this problem, or who to talk to about getting it fixed???

    Do not use, charge or turn on your iPod until it is dry:
    How to fix a wet iPod or iPhone | eHow.com

Maybe you are looking for

  • DLNA Transcode in Windows 8(.1)

    Hello, I've been reading these two threads, specifically the replies from CCazang: http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/dlna-transcode-under-windows-7-broken/1c9297f5-7fc8-44b6-8a32-8dcf0dfd0e32?page=1 http://social.tec

  • DW CS4 Links to MSSQL Database, sees fields/data but won't display on webpage

    I'm trying to get a Dynamic Data Table to show in my webpage but I can't.  (Using ASP JavaScript) I'm using DW CS4 (10.0 build 4117) and connecting to an MSSQL database on a Windows platform server hosted by Verio. I can successfully link to the data

  • Custom tab for page propertis- basic in sidekick

    Anybody knows how to customize the page properties tab in sidekick based on the template..

  • ERROR! Shared library ioser12

    I have deployed an EJB in App Server (Oracle 9iAS). I am using JDevelper 3.2 with jdk1.3 to run the client. The class path has been set to /jdk1.3/jre/bin When I am running the client from my NT m/c I am getting an error : "ERROR! Shared library iose

  • Final Cut Express Audio Listening Question

    I just installed Final Cut Express and have imported an iMovie project. When I listen to it the audio does not play. Instead I get a beeping sound. The wave forms show that the audio is there but I can't listen to it and I can't turn off the beeping.