Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //so if String str = "Compute", I should end up with
- C
- o
- m
- p
- u
- t
- e
- public static void main(String[] args) {
- int x = 0;
- String str = "Compile";
- for (int z=0;z<str.length();z++) {
- char ans = str.charAt(x);
- String inn=" "+ans
- System.out.println(inn);
- x++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement