0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
[code]public Product findProduct(Product searchProduct) { Product found = null; for(Product item : stock) { if(item.id == searchProduct.id) {found=item; break; } } return found; }[/code] The error code reads: id has private access in Product. I am new at this and do not know how to write it correctly. Thank you, … | |
Re: public int joinedInMonth( int month) { if (month>0 && month<13){ return clubMembers.size(); } else{ System.out.println("Error: Month must be between 1 and 12"); return= 0;} } I get an error of illegal start of expression pointing to the return=0 line. Any idea why? |
The End.