Card 10 / 32: class Polish { public static void main(String[] args) { int x = 4; StringBuffer sb = new StringBuffer("..fedcba"); sb.delete(3,6); sb.insert(3, "az"); if(sb.length() > 6) x = sb.indexOf("b"); sb.delete((x-3), (x-2)); System.out.println(sb); } }
A)
..azab
B)
..azba
C)
..aabz
D)
..zbaa
Answer:
B) ..azba
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|