Larry Dillions

Greenhorn
+ Follow
since May 22, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Larry Dillions

Finally I have worked it out. I understand how this loop work now.

...4...3...2....4...3...2....4...3...2
------------------------------------------
x..6...12..18...24..30..36...42..48..56
------------------------------------------
y..26..24..22...18..16..14...10..8...6


Thank you.
9 years ago
Can you explain the step by step of working table or calculation?

like this...for x = x + 3;

________inner_________outer
Loop=__4__3__2__then 1__2__3

x =____6__12_18______18_18_18

y =____28_26_24______22_20_18

My answer are totally wrong that x = 18 and
y = 18. It should be x = 54 and y = 6.
9 years ago

match each candidate with one of the possible outputs


Candidates: --------- Possible output:

x = x + 3; ------------ 45 6

x = x + 6; ------------ 36 6

x = x + 2; ------------ 54 6

x++; ------------------ 60 10

x--; ------------------ 18 6

x = x + 0; ------------ 6 14

----------------------- 12 14

Solution:

x = x + 3; ---------- 54 6

x = x + 6; ---------- 60 10

x = x + 2; ---------- 45 6

x++; ---------------- 36 6

x--; ---------------- 18 6

x = x + 0; ---------- 6 14

---------------------- 12 14
9 years ago
Let me correct this question for you...I copied this exactly same down from Head First Java 2nd edition, chapter five on page 121. I don't know how it work with the loop of 2 for....Can anyone explain how it work please and thank you.

A short Java program is listed below. One block of the program is missing. Your challenge is to match the candidate block of code (on the left), with the output that you'd see if the block were inserted. Not all the lines of output will be used, and some of the lines of output might be used more than once. Draw lines connecting the candidate blocks of code with their matching command-line output.



match each candidate with one of the possible outputs


Candidates: Possible output:

x = x + 3; 45 6

x = x + 6; 36 6

x = x + 2; 54 6

x++; 60 10

x--; 18 6

x = x + 0; 6 14

12 14

Solution:

x = x + 3; ---------- 54 6

x = x + 6; ---------- 60 10

x = x + 2; ---------- 45 6

x++; ---------- 36 6

x--; ---------- 18 6

x = x + 0; ---------- 6 14

12 14

[edit]Added code tags, minor spelling correction. CR[/edit]
[ June 05, 2008: Message edited by: Campbell Ritchie ]
9 years ago

Originally posted by Henry Wong:

In other words, you never "fully properly" learned Scheme. You never was taught Java at all.

Henry



Yeah, I absolutely agree with you! Tut tut. I will, one day! At the moment, I'm on chapter two in the Head First Java book.
10 years ago

Originally posted by Henry Wong:


So, basically, (1) you haven't done "Java" coding for 5 years, when you learned it, (2) you didn't learn the "module fully properly", and (3) you never learned Java. On the last point, isn't Kawa based on Scheme?

Henry



That's right! But on your last point, I don't know what do you mean by isn't kawa bases on Scheme!

Sorry
10 years ago
Kawa is for Linux, I remembered that my tutor installed kawa in my computer which was window98. http://www.gnu.org/software/kawa/index.html

Anyway I won't download it. Look like there is no SDK for mac?
10 years ago
I just remember now that the name of the software is Kawa for Java coding. Last time I used it was 5 years ago at University and I didn't learn the module fully properly. Why it was called Kawa? I must have missed the JDK underline.

So JDK is a software to code then. I'm going to download and install it now on my macbook and window laptop.

Thanks
10 years ago
Hi,

I have 3 jre folders in the C;\Program Files\Java

jre1.5.0
jre1.6.0_02
jre1.6.0_05

So shall I delete them all or uninstall it and install the new one of jre1.6.0_06?

And I forgot what is the name of software for java coding? I try to google.

Ta,

Jak
10 years ago

Originally posted by Kicky San:


(I am not sure if they have any special quota for Brits as they have for Singaporeans and Chileans).

[ May 23, 2008: Message edited by: Kicky San ]



Of course, there is no special quota for Brits even the special relationship between USA and UK does not help. Never mind.

Thank you for advices and information.
10 years ago

Originally posted by Luke Kolin:


On what basis will you be in the US? If you enter as a tourist you cannot do freelance work, and only stay 90 days at a time without any extension.

Cheers!

Luke



Yes as a tourist. I have a girlfriend who live in LA and she have a very important job in LA for the next 4 years. Sorry I have no choice to do the freelance work cos I need the British money to survive. I go home every 90 days for a month. If I can't get a work permit so then I cannot be force to marry her! Maybe in 2 years time. I don't know!

Cheers!
10 years ago

Originally posted by Mark Herschberg:
To your question Java is no better or worse than C# for your needs. PHP, RoR and others might be more difficult.

--Mark



Oh boy, do I need to learn another big programming language after Java?

I would like to do the SCJP then SCJD and SCMAD then SCEA, I hope to complete it all by March in 2009.
10 years ago