# Search:

Type: Posts; User: Billzhang

1. ## Thread: simple code help required

by Billzhang
Replies
7
Views
232

### Re: simple code help required

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

Code removed.
2. ## Thread: print A-Z without O I J

by Billzhang
Replies
9
Views
295

### 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. ## Thread: print A-Z without O I J

by Billzhang
Replies
9
Views
295

### 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. ## Thread: print A-Z without O I J

by Billzhang
Replies
9
Views
295

### 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. ## Thread: print A-Z without O I J

by Billzhang
Replies
9
Views
295

### 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. ## Thread: how to find all the prime no. in 1000?

by Billzhang
Replies
3
Views
176

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

I have repost the code.
7. ## Thread: how to find all the prime no. in 1000?

by Billzhang
Replies
3
Views
176

### 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