Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By milovan

Thread: Have an Error Need Hep to fix it.

  1. #1
    MikeJ39 is offline Member
    Join Date
    Oct 2011
    Posts
    38
    Rep Power
    0

    Default Have an Error Need Hep to fix it.

    Need Help With this Error can someone help me.
    Java Code:
    C:\Java Test>javac CameraInventory4.java
    CameraInventory4.java:43: error: invalid method declaration; return type required
    
            public InventoryPart4(); {
                   ^

  2. #2
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    291
    Rep Power
    4

    Default Re: Have an Error Need Hep to fix it.

    add return type for your method

  3. #3
    MikeJ39 is offline Member
    Join Date
    Oct 2011
    Posts
    38
    Rep Power
    0

    Default Re: Have an Error Need Hep to fix it.

    ok how do i do that?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  5. #5
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    291
    Rep Power
    4

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Have an Error Need Hep to fix it.


  7. #7
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    291
    Rep Power
    4

    Default Re: Have an Error Need Hep to fix it.

    @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

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Have an Error Need Hep to fix it.

    @milovan: your English looks fine as do your many contributions to this forum. Thanks!

  9. #9
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default Re: Have an Error Need Hep to fix it.

    You have a semi-colon in public InventoryPart4(); {
    .
    Remove it.

Similar Threads

  1. java out of memory error-heap space error
    By elsanthosh in forum NetBeans
    Replies: 4
    Last Post: 06-15-2010, 09:31 AM
  2. Replies: 1
    Last Post: 03-10-2010, 01:53 PM
  3. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  4. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  5. Replies: 3
    Last Post: 01-23-2009, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •