aspose file tools*
The moose likes Beginning Java and the fly likes can you help me please??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can you help me please???" Watch "can you help me please???" New topic
Author

can you help me please???

Burak Tass
Greenhorn

Joined: Jun 24, 2009
Posts: 12
4. Write a Java program that will display the first N prime numbers. For instance; if N = 14, the following numbers must be displayed
2 3 5 7 11 13 17 19 23 29 31 37 41 43
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I'm sorry Burak, but we try not supply direct answers to assignment/interview questions or provide ready made code samples (please, have a read of this).

We will however help you work through the coding problems you are having. So, what have you tried? Can you post the code you've got so far? Or if you've got nothing, can you explain what is confusing you?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Burak Tass
Greenhorn

Joined: Jun 24, 2009
Posts: 12
I need this codes to study tomorrow exam can you send it now it is not assignment i have to study tomorrow exam plaese help me
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11479
    
  16

Folk here will NOT give you the answer. If they do, moderators (such as myself) will delete it. We're here to help you learn, not spoon feed you answers to homework or test questions.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Burak Tass
Greenhorn

Joined: Jun 24, 2009
Posts: 12
can't you send me codes ?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11479
    
  16

CAN I?

yes.

WILL I?

no.

You don't seem to understand our mission here. We want to HELP you LEARN to program. you CANNOT learn to program by being handed an answer. the only way to learn is to do it yourself. Ask questions. try writing code. experiment. make mistakes and learn to not make them again.

Whether you pass or fail your exam is not our concern or problem. Personally, i don't want someone to pass a Java exam who can't program. Would you want a doctor to operate on you who doesn't know a kidney from a spleen? would you want someone to chauffeur you around who doesn't understand the rules of the road?

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18990
    
  40

Burak Tass wrote:can't you send me codes ?


Well, you can start from your other assignment....

http://www.coderanch.com/t/451098/Java-General-beginner/java/please-help-meeeee

You seem to have started work on doing primes there... you just need to finish it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
jQuery in Action, 2nd edition
 
subject: can you help me please???