User Profile

Collapse

Profile Sidebar

Collapse
ladislav
ladislav
Last Activity: Dec 6 '06, 06:28 AM
Joined: Oct 20 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ladislav
    started a topic unicode
    in Java

    unicode

    where I find simle convector code text unicode in java?
    See more | Go to post

  • ladislav
    replied to Please help my.Insorrect result.
    in Java
    Thant you I try it
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic Please help my.Insorrect result.
    in Java

    Please help my.Insorrect result.

    Please help my.My program is running but print in
    "System.out.pri ntln(firstprime .findPrime ());" isn't
    correct.It prin except string primenumbers some other
    number for example 16 or 64(it isn't primenumbers).
    I thynk that problem is in method "testIsPrim e"
    but I cannot find it.


    /**
    *PrimeNumber.ja va
    *
    *
    *
    * To change this template, choose...
    See more | Go to post

  • ladislav
    replied to Please help
    in Java
    Thank for your help
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic Please help
    in Java

    Please help

    I have error in System.out.prin tln(firstprime. findPrime ()); I don't know how
    it repair.Please hepl me with it.


    **
    *PrimeNumber.ja va
    *
    *
    *
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    */

    package TestPrime;

    /**
    *
    * @author lm
    */
    public class PrimeNumber{...
    See more | Go to post

  • ladislav
    replied to Print method
    in Java
    Please help me somebody.I want all method print in main.I don't know haw to do it.
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic Print method
    in Java

    Print method

    I need modify first program.In second program I try print method findPrime in method main.I have there anywhere mistakes.Please obout help.


    First program:


    **
    *PrimeNumber.ja va
    *
    *
    *
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    */

    package TestPrime;

    /**
    *...
    See more | Go to post

  • ladislav
    replied to How it improve
    in Java
    Thank for your help.
    See more | Go to post

    Leave a comment:


  • ladislav
    replied to How it improve
    in Java
    I want only discart multiple of prime numbers before second loop = i*i
    I don't know how to do it in array.
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic How it improve
    in Java

    How it improve

    I made this program test prime.
    I want it improve I have idea but I don’t now how it insert in into program.
    Howe somebody else idea?


    My idea: if(prime[i]==true)
    i*i==false;
    Thank for your help


    public class testPrime{
    public static void main(String[] args) {

    int limit = 1000;
    int i,j;
    boolean...
    See more | Go to post

  • ladislav
    replied to Wrong result
    in Java
    Thank for your advice very much.
    See more | Go to post

    Leave a comment:


  • ladislav
    replied to Wrong result
    in Java
    Thank for your advice.
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic Wrong result
    in Java

    Wrong result

    When I debug this isn’t mistakes.
    When I start it this is one mistake.
    Give me somebody advises please

    public static void main(String[] args) {
    int limit=1000;
    boolean []prime=new boolean[limit+1];
    prime[2]=true;

    for(int i=2;i<=limit;i+ +)
    {

    prime=true;


    if(i<2||(i%2==0 ))
    prime=false;

    for(int j=2;j<=limit-1;j++){...
    See more | Go to post

  • ladislav
    replied to prime numbers
    in Java
    I am much obliged with the help of.
    See more | Go to post

    Leave a comment:


  • ladislav
    replied to prime numbers
    in Java
    I don´t know how pp replace by array obout 100 numbers?
    See more | Go to post

    Leave a comment:


  • ladislav
    replied to prime numbers
    in Java
    I need modify this code.

    for(int pp=2;pp<100;pp+ +) //pp=possible prime
    {
    for(int pd=2;pd<pp;pd++ ) //pd=possible divisor
    {
    if(pp%pd==0)
    break;
    }
    if(pp==pd)
    System.out.prin tln(pp);
    }
    See more | Go to post

    Leave a comment:


  • ladislav
    started a topic prime numbers
    in Java

    prime numbers

    Hello,I neead help with simple program in java.First test prime numbers with use array and second with use two method,thank.
    Simi.
    See more | Go to post
No activity results to display
Show More
Working...