Search:

Type: Posts; User: kjaron

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    810

    Re: Change class type with constructor

    You have to create an Address instance, and then pass it to the Person class' constructor.
    For example:


    Address address = new Address("City name", "Street, house number, etc.");
    Person person...
  2. Replies
    1
    Views
    1,071

    Re: Why getMethod, but not set method

    The object itself may change the variable after initialization, but it would undesirable to change the variable from outside.
  3. Re: Why can I have static int a, but not int a?

    In the second case, the "a" variable is not static. Just a package-private instance variable. Instance variables cannot be accessed from a static scope.
    In the third case, you cannot use static...
  4. Replies
    0
    Views
    1,186

    My first Spring-MVC project

    Hi,

    A few weeks ago I was invited to the ip2location programming contest. I have never participated in something like this, and it looked to be fun, so I joined. Furthermore, I wanted to learn...
Results 1 to 4 of 4