Need Help With this Error can someone help me.
Code:C:\Java Test>javac CameraInventory4.java
CameraInventory4.java:43: error: invalid method declaration; return type required
public InventoryPart4(); {
^
Printable View
Need Help With this Error can someone help me.
Code:C:\Java Test>javac CameraInventory4.java
CameraInventory4.java:43: error: invalid method declaration; return type required
public InventoryPart4(); {
^
add return type for your method
ok how do i do that?
Look here: Defining Methods
@fuba
yes and also with
NullPointerException when accessing array
Since my English is not so good and I spent a lot of time writnig the answer, can you imaginig my face when I saw your answer just befor I post mine
@milovan: your English looks fine as do your many contributions to this forum. Thanks!
You have a semi-colon in public InventoryPart4(); {
.
Remove it.