Search:

Type: Posts; User: Billzhang

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,265

    Re: simple code help required

    hi rzzz : i think you means you cant put character to array; pls see followed

    Code removed.
  2. Replies
    9
    Views
    1,386

    Re: print A-Z without O I J

    thank you for you reply. i have fingerout my problem. i used ++(chr[i-1]), then ,when programs runs, chr0-> chr1, and it changged itslef also.
  3. Replies
    9
    Views
    1,386

    Re: print A-Z without O I J

    i am amateur. i try to use if statement, but i can't.
    Soooo nice if any one could help.
  4. Replies
    9
    Views
    1,386

    Re: print A-Z without O I J

    ok, i have a type mistake, should be
    int i
    and i assign as 1 in for loop.
  5. Replies
    9
    Views
    1,386

    print A-Z without O I J

    char[]chr=new char[21];
    int i=0; chr[0]='A';
    for(i=1; i<20 && chr[i]!='I' && chr[i]!='O' && chr[i]!='J';i++){
    chr[i]=++(chr[i-1]);}
    System.out.println(Arrays.toString(chr));

    I want to...
  6. Replies
    3
    Views
    1,025

    Re: how to find all the prime no. in 1000?

    I have repost the code.
  7. Replies
    3
    Views
    1,025

    how to find all the prime no. in 1000?

    becasue prime no. is a no. aliquant by a no. among 2 and itself.
    i want use a for statement, and use A to devide by (2,A), if A divisible by any no. in (2,a), A is not a prime.

    int i,a,c;...
Results 1 to 7 of 7