Search:

Type: Posts; User: bojanm

1. Thread: advice for an Odd, Even, Zero counter from input.txt file

by bojanm
Replies
3
Views
825

Re: advice for an Odd, Even, Zero counter from input.txt file

hmm
u need loop for every number
3 counters, tempnumber

for (i=0;i<=number.leght;i++)
tempnumber=Integer.parseInt(number,number.charAt(i));
3 if temp==0 count 0
....
2. Thread: Need help with program that checks requirements

by bojanm
Replies
4
Views
518

Re: Need help with program that checks requirements

im not sure but try to use pater

boolean b=true;
while(b){ ...
if (pass.leght>6; b=false;)
}
3. Thread: How to remove the last comma

by bojanm
Replies
4
Views
2,218

Re: How to remove the last comma

count=0;
for ..{
if (count<4){
fout.print(i+",");count++;}
else {fout.print(i);count=0;}
}

try this
4. Thread: Calculating average of an array

by bojanm
Replies
7
Views
1,792

Re: Calculating average of an array

but number[] is still empty 0+0=0
meybe rezult=rezult+b
5. Thread: Calculating average of an array

by bojanm
Replies
7
Views
1,792

Re: Calculating average of an array

numbers is empty !!! wath is double b ?
Results 1 to 5 of 5