| Author |
code quick quiz
|
Robert Rowe
Greenhorn
Joined: Sep 01, 2004
Posts: 1
|
|
|
hey i'm a student and I have a quiz today and I nee some help, I don't know anything about Java at all, I'm a beginner. I need to write a program that print all even numbers 0-10, using a for loop and only one if statement using jdk1.4.2(J2SE)and Netbeans, the IDE, please help and if you can provide and sources that could help me out with class. Thankyou
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24054
|
|
Hi Robert, Welcome to JavaRanch! Here at the Ranch, we love to help people learn about Java, so you've come to the right place. We don't like to give out answers to homework problems, though. Instead, we'd like to help you learn how to solve the problems yourself. This is a list of Java beginner's resources compiled by our own Dirk Schreckmann: Sun's Java TutorialIntroduction to Computer Science using Java by Bradley KjellIntroduction to Programming Using Java by David J. EckDick Baldwin's Java Programming TutorialsInteractive Programming In Java by Lynn Andrea SteinBruce Eckel's Thinking In JavaJavaRanch's own Campfire StoriesAllen B. Downey's How To Think Like A Computer Scientist I'm going to move this thread over to our "Java in General (Beginner)" forum, where you'll be able to get the help you need; look for it there and continue this conversation.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
Robert, now that quiz is likely over, I'd recommend getting an earlier start on the next task. Don't hesitate to post relevant code that you're working on. Many folks around here will be glad to help nudge you in the right direction. Note, when posting code, please be sure to surround the code with the [code] and [/code] UBB Tags. This will help to preserve the formatting of the code, thus making it easier to read and understand.
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
jim gotti
Ranch Hand
Joined: Jul 02, 2002
Posts: 36
|
|
check out what 'mod' does...for instance, what 4 mod 2 would result in.. once you know this, you will see the light [ September 01, 2004: Message edited by: jim gotti ]
|
 |
Julian Kennedy
Ranch Hand
Joined: Aug 02, 2004
Posts: 823
|
|
Coincidentally I was asked to do something very similar (odds between 0 and 100 - on paper) today in a job interview for a major investment bank. Now, the role is for a senior developer and I have 5+ years Java. I hope I passed! Jules
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
I sympathize Julian - last interview I attended: a "J2EE developer" postition (coincidentally for a major investment bank) I was asked 30 mins of questions about....Swing. At no time did they ask about EJB, JAAS, ORM technologies, JMS, JDBC, JSP, Servlets, XML, Web Services, JTA...
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Julian Kennedy
Ranch Hand
Joined: Aug 02, 2004
Posts: 823
|
|
Got the job as it happens. God, I'm good! Evens from 1 to 1000 next! :roll:
|
 |
 |
|
|
subject: code quick quiz
|
|
|