Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author Miroslav
- */
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- String s = "x";
- StringBuilder sb = new StringBuilder("s");
- while (true) {
- // s += s;
- sb.append(sb);
- System.out.println("Size: " + sb.length());
- // String aj StringBuidler 536 870 912
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment