Win a copy of Terraform in Action this week in the Cloud forum!

Elim Banda

Ranch Hand
+ Follow
since Nov 26, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elim Banda

Hello im trying to create my first package but keep getting this error. Can you please help me out anyone. im using the the latest JDK 180_131. Please see attached picture. This exercise if from page 590 headfirst.
4 years ago
I notice that the book discusses doing this process in dos do we have to learn how to do this. Or can we do easier with windows.
4 years ago
Please help look at the pictures the highlighted part. I know the first part is the reference but whats the other bit is confusing "(boo) b". can somebody please tell me whats going on there so confusing the more detail the better
4 years ago
Thanks knute but what does this line mean please explain. " you want to code to the interface rather than the implementation. "
4 years ago
This is from headfirst java page pg. 541 please see attachments.

I dont understand what they mean assigning variables of generic type. In the case of ArrayList<song> what is a variable. Also please explain the code with a question mark to me.

I thought variables where like instance variables like say a dog of a certain hieght and weight. a piece of pie for the best explanation.
4 years ago
Im having trouble understanding this program. I cant use it can somebody give me a hint. How do I get it to print the GameCharacter proprties. I tried instantiating new object but was not able to. Can anybody help ?

4 years ago
I'm finding this program a bit confusing. I understand how the serialization works but towards the end there is a getType method used for printing. Where did the program get this method from how does it know what type the object is? please see attachment.

4 years ago
have been struggling with this exersise. It compiles but no sound comes when I run the program. This is from headfirst java chapter 11. I read somewhere that you have to configure your JVM to do it. Can sbdy give me the steps of how to do it in Eclipse or DrJava.

Hey
5 years ago
So it passes in everything in the Arraylist? what does it then do with the arraylist?
5 years ago
Please explain what the line of code does what does I can make out that its add a SimUnit object to the arraylist but what does ("Retention") do please be as detailed as possible.

5 years ago
Please look at this code and explain to me what is happening when v2 object is created what does (alist) mean I have never come across this??

5 years ago
I don't understand this question doesn't everything pop of the stack eventually. What is the essence of the question.
5 years ago
Thanks these are the statements I was able to figure out as legitimate this is for the array so whats the next step?
i[x].iMethod[]
and i[x]

Tim Cooke wrote:Did you work through the puzzle yourself? Or did you just jump to the answer?

If I were working through this problem I would work backwards and start with the System.out.println() method in main. I'd think about what statements would go into the sys out to achieve the required output format. Then work out how the data values get there, which leads to working out what classes are required and where.

Specifically which part don't you understand?



I tried working through the puzzle but the I could not make sense of the inheritance because they are not logically linked together. How would you work this out step by step?