| | |
I am so confused!
![]() |
•
•
Join Date: Dec 2007
Posts: 8
Reputation:
Solved Threads: 0
I am taking an online java programming class this quarter and the book I have just does not do a good job of explaining anything! The more I read it, the more confused I become!
Can someone refer me to an article or site that explains creating methods in terms that are easy to understand? I'll post a copy of my assignment below so you can have an idea of what Im looking for..
Create a class named Eggs. Its main() method holds an integer vaiable named numberOfEggs to which you will assign a value. Create a method to which you pass numberOfEggs.
The method displays the eggs in dozens; for example, 50 eggs is 4 full dozen with two left over.
Save the program as Eggs.java.
Can someone refer me to an article or site that explains creating methods in terms that are easy to understand? I'll post a copy of my assignment below so you can have an idea of what Im looking for..
Create a class named Eggs. Its main() method holds an integer vaiable named numberOfEggs to which you will assign a value. Create a method to which you pass numberOfEggs.
The method displays the eggs in dozens; for example, 50 eggs is 4 full dozen with two left over.
Save the program as Eggs.java.
You may want to review some of the material in the "Starting Java" thread that is stickied at the top of the forum for basics.
What part of the assignment do you not understand? What do you have so far?
What part of the assignment do you not understand? What do you have so far?
Last edited by Ezzaral; Feb 2nd, 2009 at 5:16 pm.
•
•
Join Date: Dec 2007
Posts: 8
Reputation:
Solved Threads: 0
I am really confused about the whole deal. This is only the second week of the class and I haven't been able to grasp the idea of any of it thus far. 
I dont understand what it means by "passing"
This is what I have so far.
public class Eggs
{
public static void main(String[] args)
{
int numberofEggs = 25;
System.out.println("25 eggs are two full dozen plus one");
}
}
Ill go read though that thread.. thanks

I dont understand what it means by "passing"
This is what I have so far.
public class Eggs
{
public static void main(String[] args)
{
int numberofEggs = 25;
System.out.println("25 eggs are two full dozen plus one");
}
}
Ill go read though that thread.. thanks
Last edited by girlinwayside; Feb 2nd, 2009 at 5:30 pm.
•
•
Join Date: Nov 2007
Posts: 84
Reputation:
Solved Threads: 0
it is OK the beginning always be like that
you may want to try read this, I had when I was in my earlier weeks
http://www.freejavaguide.com/corejava.htm
also the Deitel and Deitel resource are worthy to read
if you have visited that link and not helping plz let me know, and wish you can send what sites you have tried so far,
passing means that to send the parameter the method would use in its calculation, sending them when you call the method,
hope this helps, good luck
you may want to try read this, I had when I was in my earlier weeks
http://www.freejavaguide.com/corejava.htm
also the Deitel and Deitel resource are worthy to read
if you have visited that link and not helping plz let me know, and wish you can send what sites you have tried so far,
passing means that to send the parameter the method would use in its calculation, sending them when you call the method,
hope this helps, good luck
Last edited by knowledgelover; Feb 3rd, 2009 at 6:51 am. Reason: link update
there's always something to learn
'passing' here is about the same as in sports: one guy has the ball, he 'passes' it to another guy, now that other guy has controle over it.
Java Syntax (Toggle Plain Text)
// class that uses an object or class Sports.showPass("this ball"); // other class -> Sports.java public void showPass(String pass){ // the String-object 'pass' is passed on to the method System.out.println("the first player passed " + pass); }
•
•
Join Date: Dec 2007
Posts: 8
Reputation:
Solved Threads: 0
•
•
•
•
'passing' here is about the same as in sports: one guy has the ball, he 'passes' it to another guy, now that other guy has controle over it.
Java Syntax (Toggle Plain Text)
// class that uses an object or class Sports.showPass("this ball"); // other class -> Sports.java public void showPass(String pass){ // the String-object 'pass' is passed on to the method System.out.println("the first player passed " + pass); }
Thanks! Those are terms I can understand.. LOL I will be working on this all day today - I have three assignments and an application test all due today! EEEKKK! I have been reading the same chapter in my textbook since Sunday trying to understand this stuff.
![]() |
Similar Threads
- confused about SE + SEO. (Search Engine Optimization)
- Confused about SATA RAID (Storage)
- Confused about loops and switch (Java)
- Confused writing a Java Class (Java)
- confused about shell sort ... (C)
- confused how to begin this program (C++)
- Need help With this C++ Program..Confused.. (C++)
- ftp client issues...im so confused...plz help!!! (Windows Software)
Other Threads in the Java Forum
- Previous Thread: Converting MS Office Docs using JAVA
- Next Thread: Random Assignment of Numbers to letters
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






