On Wed, 30 Apr 2008 16:48:13 +0000, Donkey Hot wrote:
> package confusing;
>
> public class Main
> {
> public static void main(String[] args) {
> String blank = " ";
> String sample = "bb bb bb";
>
> System.out.println(blank.substring(0,
> blank.length() - sample.length()) + sample);
> }
> }
I don't think that this will meet the requirements of the assignment, not
all of which are (probably) stated.
I bet that there needs to be a loop of some sort, probably nested, and
some arrays. Perhaps an array of Strings? As the array is iterated,
depending on the index, the printing is different.
-Nick


|