Search:

Type: Posts; User: wamidh

Search: Search took 0.10 seconds.

  1. Thread: State diagram

    by wamidh
    Replies
    2
    Views
    850

    State diagram

    I red the following statement the other day:

    >An object has a state that can be represented in a state diagram<

    I don't understand what a state diagram is, or how it can represent an object's...
  2. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    okay, thank you.
  3. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    I tried that out but then it said cannot make static reference to non-static method duck() from the type Wamidh.
    Then I changed the duck function to static and then it worked!
    I don't know if it's...
  4. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    oh, thank you but what do I write to call my function duck?
  5. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    I am meant to call my function? how do I do this?

    thank you for your reply.
  6. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    it won't say eric when I click run
  7. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Re: Confused

    public class Wamidh {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    }
    public void duck(){
    String yellow = "eric";
    System.out.println("" + yellow);
    }
  8. Thread: Confused

    by wamidh
    Replies
    13
    Views
    913

    Confused

    I don't understand why this won't work? thank you.




    public void duck(){
    String yellow = "eric";
    System.out.println("" + yellow);
    }
  9. Replies
    6
    Views
    1,351

    Re: multiple methods in one class

    I don't know what happened to it >.> The file just won't open. Oh well, if I come across the same problem I will come back to this thread. Thank you anyways guys.
  10. Replies
    6
    Views
    1,351

    Re: multiple methods in one class

    thank you Greg. I'm just trying to figure out why one of my methods don't work when I run the programme.
  11. Replies
    6
    Views
    1,351

    multiple methods in one class

    Is it possible to have multiple methods in one class?
    And can I use the Scanner in methods other than the main method?

    Many thanks
  12. Thread: Resource leak

    by wamidh
    Replies
    10
    Views
    1,206

    [SOLVED] Re: Resource leak

    thank you everybody!
  13. Thread: Resource leak

    by wamidh
    Replies
    10
    Views
    1,206

    [SOLVED] Re: Resource leak

    oh. how do I use close()
    do I type in close(input1) ;
    thank you Cornix

    --- Update ---

    ah, thank you Ada
  14. Thread: Resource leak

    by wamidh
    Replies
    10
    Views
    1,206

    [SOLVED] Re: Resource leak

    Thank you Cornix.
    I actually just ended up converted local variable to field. It fixed the problem, but I have no idea why this fixes the problem. Do you mind explaining please. thank you
  15. Thread: Resource leak

    by wamidh
    Replies
    10
    Views
    1,206

    [SOLVED] Resource leak

    what does this mean? and how do I fix this issue?

    resource leak:'input1' is never closed

    many thanks.
Results 1 to 15 of 15