[問題] 如何使用別人的class檔
老師出了一個作業
要用他寫的class檔
我們看不到code
請問要怎麼include進去自己的class檔呢
我查了好久一直不知道怎麼辦
請問有人可以幫忙嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.198
→
03/24 13:36, , 1F
03/24 13:36, 1F
→
03/24 13:38, , 2F
03/24 13:38, 2F
→
03/24 13:38, , 3F
03/24 13:38, 3F
→
03/24 13:39, , 4F
03/24 13:39, 4F
→
03/24 13:40, , 5F
03/24 13:40, 5F
→
03/24 13:40, , 6F
03/24 13:40, 6F
→
03/24 13:41, , 7F
03/24 13:41, 7F
public class 123132 {
public static void main (String[] args){
123 n =new 123();
}
}
就只有這樣而已 class檔放在src裡面
※ 編輯: warewolf 來自: 140.112.4.198 (03/24 13:43)
→
03/24 13:48, , 8F
03/24 13:48, 8F
→
03/24 13:49, , 9F
03/24 13:49, 9F
→
03/24 13:50, , 10F
03/24 13:50, 10F
→
03/24 13:52, , 11F
03/24 13:52, 11F
上面的那些數字都是英文 錯誤訊息是 XXX cannot be resolved to a type
變數第一個不能打數字這我知道
※ 編輯: warewolf 來自: 140.112.4.198 (03/24 13:53)
※ 編輯: warewolf 來自: 140.112.4.198 (03/24 13:54)
→
03/24 13:57, , 12F
03/24 13:57, 12F
→
03/24 13:58, , 13F
03/24 13:58, 13F
→
03/24 14:00, , 14F
03/24 14:00, 14F
→
03/24 14:02, , 15F
03/24 14:02, 15F
Could not open the editor: The Class File Viewer cannot handle the given
input ('org.eclipse.ui.ide.FileStoreEditorInput').
※ 編輯: warewolf 來自: 140.112.4.198 (03/24 14:03)
→
03/24 14:09, , 16F
03/24 14:09, 16F
→
03/24 14:09, , 17F
03/24 14:09, 17F
→
03/24 14:10, , 18F
03/24 14:10, 18F
推
03/24 21:28, , 19F
03/24 21:28, 19F
討論串 (同標題文章)