[Bluej-discuss] Ex.4.38

Mike Stevens howlinhuskie1 at shaw.ca
Fri Nov 10 09:34:51 GMT 2006


Thanks Jens for pointing the parameter out as a local var, that will change
the way I'm looking at local vars when I 'm passing a parameter like this.

 

The method compiled after I changed this but it is not adding in the product
now

 

if(inStock.getID() != item.getID())

                {

                    stock.add(item);

                }else{

                    System.out.print("Id used");

                }

 

Have I over looked something here?  I have the print out just to let me know
the if and else are working.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20061110/fe0e851f/attachment.html


More information about the bluej-discuss mailing list