Search:

Type: Posts; User: Jexly_

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    621

    Re: NullPointerException

    Basket cards = new Basket(card);
    client.purchased = cards;

    I think here

    --- Update ---

    But I can't understand WHERE i need define

    --- Update ---
  2. Replies
    8
    Views
    621

    Re: NullPointerException

    But also I can't do this client.purchased = 0; So I don't know how to fix

    --- Update ---

    I already re-read the code, but I still can't figure out where my mistake is.

    --- Update ---
  3. Replies
    8
    Views
    621

    Re: NullPointerException

    Could you explain to me in more detail how I can fix the error? I do not understand

    --- Update ---

    I do


    System.out.println(client.purchased);
  4. Replies
    8
    Views
    621

    NullPointerException

    package Interfaces.InternetShop;

    import java.io.IOException;
    import java.util.Objects;
    import java.util.Scanner;
    import java.util.concurrent.TimeUnit;

    public class HelloKitty {

    public...
Results 1 to 4 of 4