import java.io.*;
public class Test {
static java.io.PrintStream o = java.lang.System.out;
public static void main(String[] args)throws Exception {
BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter plot for printing: ");
String s = BR.readLine();
char[] cs = s.toLowerCase().toCharArray();
for(int i=0, j=0; i < cs.length-0x1; i+=0x2, j=0)
{
while(j++ < (int)(cs[i]-0x30))
{
o.print((char)(cs[i+0x1]-0x20));
}
}
}
}
I dont take full credit in making this but I want to modify it so that it can take multiple inputs separated by space, I tried to use tokenizer but I dont know how exactly will I use it because I get errors in compiling.
the goal is it should come out like this example:
Enter plot for printing: 3b1o3b 1b4o1b 3b1o3b
output:
BBBOBBB
BOOOOB
BBBOBBB
2007-01-28
23:27:25
·
3 answers
·
asked by
wata_tempora
1
in
Computers & Internet
➔ Programming & Design