class="area">
電腦知識吧分享:”java中String 的應用“public class HelloWorld { public static void main(String[] args) { //定義字符串 String hobby ="愛電腦知識吧"; String url = new String("."); //輸出字符串 System.out.println("hobby:" +hobby ); System.out.println("url:" +url ); }}