• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code quick quiz

 
Robert Rowe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java
  • JavaRanch's own Campfire Stories
  • Allen 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.
     
    Dirk Schreckmann
    Sheriff
    Posts: 7023
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    jim gotti
    Ranch Hand
    Posts: 36
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 823
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 10336
    Eclipse IDE Hibernate Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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...
     
    Julian Kennedy
    Ranch Hand
    Posts: 823
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Got the job as it happens. God, I'm good! Evens from 1 to 1000 next! :roll:
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic