sukatoa 0 Newbie Poster

Have you tried JDeveloper?

sukatoa 0 Newbie Poster

You may initialize an array inside your main class together with your methods.

int primenumber[] = new int[max capacity of your array];

You can directly access every element of your array inside your main class.
(It would be nice you implement it with set method)

After printing a prime number, assign that value into your array then increment.

Try to have some experiments about it, then

Read about ArrayList

best regards,
sukatoa

sukatoa 0 Newbie Poster

And don't forget to inclose your codes with codetag

Youre code here.
sukatoa 0 Newbie Poster

Don't forget to download the Java-Core API documentation. It is useful.

Using IDEs might confuses you as you are learning java, instead, use notepad.

Regards,
sukatoa

sukatoa 0 Newbie Poster

@ TFQuestion Constructor, you are using boolean variable "true", which is not allowed to be a variable in java. It is a keyword.

if tfQuestion is the holder of statement with respect to the true/false question, then return that string, not the name of the class.

about your checkAnswer, that is not a constructor, since it should return a boolean value, put a boolean after the public.

regards,
sukatoa

sukatoa 0 Newbie Poster

What have you done so far?

regards,
sukatoa

sukatoa 0 Newbie Poster

cannot read: Wecome.java.
and if i type java Welcome it will give this error Exception in thread "main" java.lang.NoClassDefFoundException:Welcome

Wecome and Welcome is not the same...
For humans, it is understandable, but for Machines, they don't accept it.

If you just mistyped it,

Here is the last option,
If your main class ( public class ) is Welcome, then save it first into Welcome.java

Copy that file into the bin folder where javac.exe exists,
run terminal ( CMD for windows )
Go to the bin folder.
As usual, type javac Welcome.java
If there is an error again, im 100% sure, there is a problem on your code.

And that error should be posted here in order for our experts to advice you immediately.

regards,
sukatoa

sukatoa 0 Newbie Poster

Your hangman program runs well in my machine....

Testing your applet just after you have uploaded it on the host may come-up with that problem. Bec, the file that have been uploaded may still on the process at that time.

have you enabled your java?
What JRE version are you using?
If you are using Mac, you can read this for some time,

regards,
sukatoa

sukatoa 0 Newbie Poster

Is there a code in assembly that is similar C like sleep(milliseconds)?
Is there also a code in assembly that is similar also to C, clrscr()?

I like to add that to my code that will be passed tomorrow... but i have no idea!!!

Can you advice me where to find a freeEbook on A86 Assembly programming?
I mean website?!!!


Any reply will be appreciated....

Thanks
A86 beginner