Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
[My Blog]
All roads lead to JavaRanch
Originally posted by Christophe Verre:
Looking at the picture here, it looks like you are trying to make it more difficult than it should be. Why are you counting the number of names that can fit in one screen ? Appending names one after another should be enough.
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Originally posted by Tim LeMaster:
Think carefully about m*=2 for a moment.
Originally posted by Christophe Verre:
Doooh. Sorry
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Originally posted by Tim LeMaster:
Ask yourself:
How many times will the outer loop execute?
How many times will the inner loop execute for each outer loop iteration?
nameCount = consoleWidth/nameLength forgets what part of the output?
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
Originally posted by Tim LeMaster:
Think carefully about m*=2 for a moment.
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
Originally posted by Shivit Agarwal:
if(test++==m)
{ System.out.println();
m*=2;
}
}
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Originally posted by Stuart Smith:
I don't really understand what m*=2 does exactly, this is the problem my maths is weak, in fact I am having trouble understand how the code works that uses it.
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Dale Carnegie:<br />"Most of the important things in the world have been accomplished<br />by people who have kept on trying when there seemed to be no hope at all."
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |