Search:

Type: Posts; User: ankurt

Page 1 of 2 1 2

Search: Search took 0.24 seconds.

  1. Re: game Snake in the applet, how to execute methods from different classes?

    You need to create an object of the class in which your method to be called is present.
    Then you need to call the method using that object.


    e.g Class obj1=new Class();
    obj1.method();

    Does...
  2. Thread: Java Compiler

    by ankurt
    Replies
    7
    Views
    217

    [SOLVED] Re: Java Compiler

    ex.printStackTrace(PrintWriter s) is not to print the Hello World. It is used to change the stream of stackTrace being printed.

    using
    System.setErr(System.out);
    you can route all your error...
  3. Thread: Java Compiler

    by ankurt
    Replies
    7
    Views
    217

    [SOLVED] Re: Java Compiler

    It prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err.

    --- Update ---

    You may use either of the following


    ...
  4. Thread: season tree

    by ankurt
    Replies
    1
    Views
    95

    Re: season tree

    So what is your question??
  5. Replies
    5
    Views
    158

    Re: Search Form Doesn't work!

    Can you once try running the program by hardcoding the values in place of the variables.
    e.g.
    replace


    with some real values from your side and then check what is your output.
  6. Replies
    5
    Views
    158

    Re: Search Form Doesn't work!

    What do you mean by

    cbSearchIn.getSelectedItem().toString().replaceAll("","")

    Why are you doing that?
    you are replacing nothing.

    I think there is some problem with your sql query...
  7. Thread: interface

    by ankurt
    Replies
    1
    Views
    84

    Re: interface

    I guess this should be the place where you must start-> Interface
  8. Replies
    4
    Views
    152

    Re: Need help with this algorithm

    Firstly you can extract out the consecutive occurence of numeric entry in your text and then you may have a hashmap in which for each combination of numeric values, you can have a corresponding...
  9. [SOLVED] Re: Program won't go to result after input. Help ASAP please..

    Your loop iterates numberStudents times but it stores all the values in the same variables, hence there are only 1 set of values with you when the loop ends and that is the last value entered. This...
  10. Replies
    8
    Views
    208

    Re: How do I get rid of the "this."

    you should not leave it. Get to the core, where you were lagging so that next time you do not face much problems with "this"
  11. Replies
    8
    Views
    208

    Re: How do I get rid of the "this."

    When you use the arguments in a method with the same name as the variables of the class/method, then to differentiate between those variables we use "this" keyword, which refers to the current class...
  12. Thread: irshad ali

    by ankurt
    Replies
    1
    Views
    125

    Re: irshad ali

    It would have been better if you would have written this on your preffered browser.

    You can check out the wikipedia page and also the oracle docs.
  13. Thread: calculator

    by ankurt
    Replies
    3
    Views
    153

    Re: calculator

    This is not the right place.
    You must start something by yourself and ask your problems if you get any.
  14. Replies
    3
    Views
    215

    Re: simple calculator using custom tags

    Track the error. Doesnt it help when you check the testCal1.jsp file. Is there a setter method for Num1?
  15. Replies
    8
    Views
    176

    [SOLVED] Re: Running a class outside the directory

    Definitely. Everyone here is there to help everyone else. :)
  16. Replies
    8
    Views
    176

    [SOLVED] Re: Running a class outside the directory

    I am not sure but according to me -classpath is a command to set the classpath and $CLASSPATH is the environment variable which contains the value of classpath.

    Do confirm, not 100% sure.

    ---...
  17. Replies
    8
    Views
    176

    [SOLVED] Re: Running a class outside the directory

    Anytime :)
  18. Replies
    8
    Views
    176

    [SOLVED] Re: Running a class outside the directory

    Yes, you can do so by setting the classpath i guess.
  19. Replies
    8
    Views
    126

    Re: Rock Paper Sissor

    (int)(Math.random() * (max - min) + min).

    This is the formula for having value in the range min-max. The minimum number here is min and the max number is max-1.

    I hope this helps.
  20. Thread: Rest APIs

    by ankurt
    Replies
    3
    Views
    142

    Re: Rest APIs

    I understand that. Actually i am in an urgent need for a project, so I thought maybe i could get some help.

    Any ways I have started reading the docs on oracles site. Possibly my requirement is...
  21. Thread: Rest APIs

    by ankurt
    Replies
    3
    Views
    142

    Rest APIs

    Can someone help me out with Rest APIs. Where should I start learning from and how much time would it take me to get some hold over it.
  22. Replies
    2
    Views
    124

    Re: School Time Table

    Firstly you gotta try something yourself and then when you get stuck, we all are here to help you.
  23. Thread: hi

    by ankurt
    Replies
    12
    Views
    145

    Re: hi

    haha.....Well in this only 2 things can help you- 1.Internet and 2. Java book.......

    you must start yourself. Learn online and then if you get stuck somewhere while programming then come back to...
  24. Thread: hi

    by ankurt
    Replies
    12
    Views
    145

    Re: hi

    try doing the programs which you did in other languages using Java. Get surrounded by problems and then get them cleared on this forum and on the internet.

    Happy Learning :)
  25. Thread: hi

    by ankurt
    Replies
    12
    Views
    145

    Re: hi

    do you know any other programming language?
Results 1 to 25 of 48
Page 1 of 2 1 2