Heidi Atwood

Greenhorn
+ Follow
since Oct 25, 2012
Merit badge: grant badges
For More
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
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Heidi Atwood

OK, and thank you for the explanation. I understand that factor can take on whatever the value of the variable is that it is being passed in the method. My confusion was that nowhere in the code did I see where y was specifically being passed into the method doStuff, I didn't understand you were using that as an example. I apologize for not getting it sooner.

Heidi
11 years ago

When a method is called, it may (or may not) have one or more "parameters" passed to it. The place from which the method is called puts one or more names of variables in the parentheses following the method name, and the values of those are "passed to" the method.



I knew this, sorry, I've only been studying Java for about a month and I can't seem to keep hold of all the odds and ends. That makes much more sense now, but if this is the line of code in which doStuff is being called:



wouldn't the variable being passed be x? I'm sorry for being so thickheaded!!!

Heidi
11 years ago
Wait, I STILL don't get where we find the value of factor? HELP!
11 years ago
Holy moses, thank you so much for that explanation! I had worked this out on paper, I had typed it into Eclipse, I had changed the variable names to make it more understandable but it wasn't until I read through your explanation that I got where ivar was getting its value!! Coderanch to the rescue again. Thanks so much!

Heidi
11 years ago
ACK! Never mind - just discovered this has already been asked about ten times. Sorry!
11 years ago
I've been working my way through Headfirst Into Java and got to the puzzle in Chapter Five and got stumped. I changed the variable names to something less confusing and I can follow most of the code, but I don't understand where in the PuzzleTest class that the int variable factor gets made equal to a number that can be used to complete the calculation. I know I'm pushing the "no question to small" envelope but I've been staring at it since last night and would appreciate any pointers? Thanks for any help! Here is the main class (and yes, I know I renamed them backwards with the main being Puzzle and the method class being PuzzleTest)...



And here is the method class...



Heidi
11 years ago
Oh man!!! Talk about obvious mistakes and still not getting a clue - thank you, Henry, for gently trying to get me to see it and thanks Tony, for making sure I saw it.

Heidi
11 years ago
OK, first off, thanks for the superspeedy response! Second, when I try to run your code, it hangs up just like mine. When I compare line by line I'm still missing the difference - sorry if my formatting was wonky - I was using the default (or thought I did) shift-control F in Eclipse to get everything lined up correctly.
11 years ago
I've been staring at this code for an hour and I can't figure out why it's hanging up. The while loop never happens. I'm sure it's horribly obvious but if someone could point out the problem I'd be grateful or at least give me a hint. The result is supposed to be: a-b c-d

11 years ago
Well, I got a little further and then got stuck again. I'm able to write to the data base, and retrieve from it, but I'm stuck on understanding how to compare user input to existing data to confirm someone is a registered user. Let me preface this by saying I'm totally winging it and don't have a good understanding of what's happening. Here's what I've got in the main launcher class which isn't working...



And here is the piece in the other class.



And finally the section for the prepared statement.


I'm not sure how well I can explain, but I'll try. Let me take another look at the code and get my thoughts together, lol...

Heidi
Never mind - figured it out!!
I'm working on code that is for an eBookstore project in my class. I have it set up so the user is asked if they are a registered user. If they answer y (for yes), I want to be able to be able to check their login name against an existing database. I've managed to write to the table and I can read from it, but no idea how to actually search it. I'm going to try and put my code in (yes, it's a dogs breakfast) because I don't have a great grasp on how this process works so please forgive me if it's messed up! :-)

Ed Dablin wrote:

Heidi Atwood wrote:Hi, I'm in a Java developers boot camp and I'm coming in with zero programming experience. Are there any tutorials on YouTube that are particularly suited to total newbies? I just ended week two of what is supposed to be a fourteen - twenty week program and to say I'm overwhelmed is an understatement. I have Head First Java and a couple other books and those are helping a lot, but I can use anything extra to get me through this. Thanks again - I've already learned a lot just reading through threads, including the difference between methods and constructors, which had completely baffled me!

Heidi



Speaking as one beginner to another, I have found the quality of many YouTube videos to be very poor. I subscribed to www.lynda.com and it is worth every penny. The instructors have obviously rehearsed the carefully written scripts so there are no "ers", "ums" or errors. They move along at a cracking pace, but that's ok because you can replay them over and over. (I have no connection with lynda.com except as a satisfied customer)



Good to know - I'll definitely check it out. Thanks for the info!

Heidi
11 years ago

Paul Witten wrote:

Heidi Atwood wrote:Thanks so much everyone!


I remember a pro guitarist telling me about his horrible Guitar Institute Boot Camp that lasted a couple of months, live in, ten hours a day theory cramming and playing time, seven days a week. He said it was trauma on the mind as it was impossible to absorb everything. The information came too fast for normal absorption. But he swore by the experience later, saying that his mind took in much more than he realized at that time. A few months would go by and he'd remember something that he had no daily memory of learning.

Educators will tell you that the best way to learn is through purposeful repetition. It's hard to repeat much during a bootcamp. I don't mean repeat once or twice - I mean repeat as many times as you need to have it "sink in". Sometimes that can take quite a few repetitions as you learn incrementally through each repetition. Finally you get it, the light goes on, and you're done forever with that.

I'd rather play with while loops for a week and discover all there is to know about them than to play for a few hours, say "I now know while loops" and rush on to the next item.



I agree, but unfortunately the boot camp is my way to a job, something I've been looking for since February... :-( So I'm trying to gain as much foundation as I can throughout the process.

Heidi
11 years ago