Search:

Type: Posts; User: krillov

Search: Search took 0.12 seconds.

  1. Thread: Prim numbers

    by krillov
    Replies
    7
    Views
    1,179

    [SOLVED] Re: Prim numbers

    I fixed it. :)



    public class prim7 {

    public static void main (String[] args) {

    int prim=50;
    int j;
  2. Thread: Prim numbers

    by krillov
    Replies
    7
    Views
    1,179

    [SOLVED] Re: Prim numbers

    Thanks again! Process completed now and it writes out numbers or not. It depends on if I set "result" to true or false. So I realized that my method doesn't do anything at all just sending back the...
  3. Thread: Prim numbers

    by krillov
    Replies
    7
    Views
    1,179

    [SOLVED] Re: Prim numbers

    Thank you. I haven't seen it. I tried again but when i fix a fail there will be an other. It is now: "prim4.java:42: error: variable result might not have been initialized return result; " Do you...
  4. Thread: Prim numbers

    by krillov
    Replies
    7
    Views
    1,179

    [SOLVED] Re: Prim numbers

    Thank you! I was trying as you said but it still writes an error message like: ...\prim4.java:42: error: missing return statement. I canīt find out what the problem is.



    public class prim4 {
    ...
  5. Thread: Prim numbers

    by krillov
    Replies
    7
    Views
    1,179

    [SOLVED] Prim numbers

    I got a task to write a java program which can solve some mathematical actions. Every action has to be in separate methods. My problem is with a method which should sort prime numbers between 0 and a...
Results 1 to 5 of 5