Search:

Type: Posts; User: Billzhang

Search: Search took 0.33 seconds.

  1. Replies
    9
    Views
    1,409

    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.
  2. Replies
    9
    Views
    1,409

    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.
  3. Replies
    9
    Views
    1,409

    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.
  4. Replies
    9
    Views
    1,409

    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...
Results 1 to 4 of 4