atish shrestha wrote:this is the output that i was hoping but somehow it is not getting right
OCPJP6
Since you are new, I have added the code tags, but I had to shorten the long lines and you can see how it is done. Doesn't the post look better now .Stefano Carniel wrote:I suggest you to use code tags otherwise your code is unreadable. Then post the output you got and the one you want
atish shrestha wrote:it says arrayindexoutofbounds-1. that was the error i got.
Pawel Pawlowicz wrote:you get an error because you use setChannel and setVolume methods inside your constructor. You should not do that. Just initiate your variables directly.
Consider Paul's rocket mass heater. |