Archive for the ‘Beginners’ Category
If you’re building a long String in Java, don’t stick String objects together using ‘+’, for example: String str = “Hello”; str = str + world; str = str + “!”; Why not? It’s really slow when you do it a lot! What should you do instead? Use the append(String) method in StringBuffer (Java 1.4.2 [...]
In: Beginners, Development, Java · Tagged with: concatenation, html, Java, optimisation, performance, speed, string, stringbuffer, stringbuilder
So you’ve got a website with some pictures that you’ve saved somewhere. The pictures work on some pages, maybe only one, put not on others. Your problem is all to do with relative links in your HTML. The views expressed here are the personal views of the author.