這個(gè)應(yīng)該是對(duì)的啊
package mukewang; public class lianxi { public static void main(String[] args) { String hobby="我愛慕課網(wǎng)"; System.out.println(hobby); hobby="www.imoc.com"; System.out.println(hobby); } }?
package mukewang; public class lianxi { public static void main(String[] args) { String hobby="我愛慕課網(wǎng)"; System.out.println(hobby); hobby="www.imoc.com"; System.out.println(hobby); } }?
2016-07-19
舉報(bào)
2016-07-22
變量名hobby重復(fù)了
2016-07-19
package mukewang; 這一句錯(cuò)了,包的位置應(yīng)該是package com.mukewang;