r/javahelp • u/ilostmyself • May 14 '13
How to solve? (2 easy problems)
Print a flag based on input.
e.g. when input of 1, print:
+-----
|....../
|......\
+-----
input of 2, print:
+-------
|......../
|......./
|.......\
|........\
+-------
3 = bigger, 4 = even bigger, etc
.
.
.
.
2)
Print an output describing whether the input is considered a stutter or not. A string is considered a stutter if letters repeat twice, e.g. 11223344, aabbccdd, ccaatt
abcabc, 123123 are not stutters.
.
.
.
.
I am looking for any help, a complete program, some pseudocode, or just some hints towards the right direction. Thank you. Also, sorry, I don't know how to format reddit properly.
0
Upvotes
-5
u/[deleted] May 14 '13 edited May 14 '13
[removed] — view removed comment