Hello. I'm working on the Head First Java BeatBox project and I'm really confused on the part where they have the two for loops. I'm not sure what is supposed to go in the checkboxList.get() method. How does it work? They have it as checkboxList.get(j+(16*i)); but if it goes from 1 to 256 shouldn't it be i*j? Also I'm confused about where I can get more information about Java's libraries and classes like MIDI sound. For example, where would I find out information like 35 represents the Bass Drum sound in MIDI sound? I looked in the API documentation but they seem to have limited information. Can you tell me what you use to find detailed information about how certain Java libraries and classes work when you are doing projects? Can you give me a link? Thank you.
WanXiang Chen wrote:I’m sorry but can you actually give me some helpful suggestions in regards to my question? Seriously this website sucks.
Not really. For example you asked about "checkboxList.get(j+(16*i))". So I looked through your post and I couldn't find it. That doesn't mean it isn't there, it might mean that my eyes got tired of looking through six screens full of text (three times) posted as an image and overlooked it. Whereas if you had posted the text I would have found it (or not) instantly.
But you have the text in a file in your computer, right? Why didn't you just post that so we had some hope of being able to deal with it? "Sucks" works both ways.