java.lang.NoSuchMethodException

alakimibid

New Member
Reaction score
0
Hello, i'm recently trying to finish my assignment for programming at university but the discussion boards are too difficult to follow as it consists of "pro"grammers and they use very difficult terminology to understand or to help me solve my problem.
ss (2014-03-16 at 03.04.24).png
ss (2014-03-16 at 03.04.48).png
 

monoVertex

I'm back!
Reaction score
460
Hello, alakimibid and welcome to the TH forums!

The constructor method (Dot()) should not return anything. Remove the "void" keyword.

This is because constructors return the instance of the Object itself and that's fixed. It means it can't return "void" or anything else, the return value is already known.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,633
TL;DR:

Code:
public class Foo {
    public Foo(){
        //...Default constructor
    }
}
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top