CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: themoffster

Page 1 of 11 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: I just have a small question. Please help me

    this is your issue.
    You've got your loop in the wrong place. As it s you will only ever cause the option window to choose the planet to appear once
  2. Re: Program to find free disk space in linux using JAVA

    :d
  3. Replies
    7
    Views
    1,318

    Re: For Loop Help

    try to get it outputting:
    aa
    ab
    ac
    ...
    az
    ba
    ...
    bz
  4. Replies
    1
    Views
    3,166

    Re: Trouble Connectiong to a database

    You define 'myuser' and 'mypass', but in the connection string you don't pass them in.


    "jdbc:sqlserver://empiremain.empirevoip.com:3306/SQLEXPRESS/DB_Accounts;user=myuser;password=mypass;"
    this...
  5. Replies
    2
    Views
    1,092

    Re: Perimieter and Area of X shapes coding

    1. Use code tags - nobody is going to look at the code if it's not in a readable format.
    2. What exactly is the problem you are having?
    3. If an error is being thrown, provide the stack trace as...
  6. Replies
    11
    Views
    2,266

    Re: Exception handling for the wise!

    Ah understood.
    Put that bit of code inside the try {} statement that way any exception will be handled by the catch statements.
  7. Replies
    11
    Views
    2,266

    Re: Exception handling for the wise!

    What the parseLong(String str) method does is convert a number in string format to a Long number - i.e. Long.parseLong("123") equals 123 as a long number.

    Passing in non-numeric input to the...
  8. Replies
    11
    Views
    2,266

    Re: Exception handling for the wise!

    Well a long is a number - passing "sdfg" to it isn't going to work is it?
  9. Replies
    17
    Views
    12,617

    Re: Exception Handling Problems

    2nd page and still no error message.
    You've been asked many times - either post the error message or nobody will be able to help you.
  10. Replies
    11
    Views
    2,266

    Re: Exception handling for the wise!

    In the error trace it tells you the problem is the input string "sdfg" and that the line thats throwing the error is line 115 of CountryUserInput.

    Which line is this?
    I think it is because you...
  11. Replies
    3
    Views
    988

    Re: Simple String Manipulation Help

    You'll still need to include the check that the argument is not empty. I left it out for clarity on the important points
  12. Re: Simple Calculator, simple problem - but how to fix?

    calculatorEngine calcEngine = new calculatorEngine(this);
    button0.addActionListener(calcEngine);
    button1.addActionListener(calcEngine);
    button2.addActionListener(calcEngine);...
  13. Replies
    3
    Views
    988

    Re: Simple String Manipulation Help

    You are along the right lines.
    You do need to use a for loop. What i would do is use the for loop at the start, then add the first character to the end...




    public String rotateLeft(String s)...
  14. Replies
    11
    Views
    2,266

    Re: Exception handling for the wise!

    exception handling is done via try/catch statements.
    for example:



    try {
    ..do the thing that could cause the error to be thrown
    }
    catch (NumberFormatException e) {
    ....handle the error...
  15. Replies
    3
    Views
    4,398

    Re: Stressing about my Final, Help? :)

    Take it one line at a time - after each line, write down what the variable is.
    If you are still struggling, you could always type it all into the computer and run the program yourself.
  16. Re: Could anyone help? (Static reference error)

    use Eclipse as your IDE - it gives handy hints as to how you can resolve such issues.
    it's very handly when you are just starting out
  17. Replies
    7
    Views
    3,997

    Re: Beginner Java Student Question

    If you get a not found error like that it is usually a missing import (as is the case here).
    I'd recommend using an IDE like Eclipse as it highlights possible solutions to simple problems like these.
  18. Replies
    4
    Views
    13,741

    Re: Recursive Maze With Backtracking

    //Base Case 1: End of Maze
    if(maze[r][c] == 'E')
    {
    total++;
    maze[r][c] = PATH;
    System.out.println(maze);
    return;
    }

    ...
  19. Replies
    4
    Views
    13,741

    Re: Recursive Maze With Backtracking

    Dude give us the stack trace of the error.
    Most people aren't going to run your code to replicate the error, so if you post the stack trace you are more likely to get a response.
  20. Replies
    4
    Views
    1,234

    Re: If statement

    In java a single = sign assigns a value to a variable - i.e. i=1 sets the variable i to the value 1.
    i == 1 is an equality checker, which checks that the variable has the same value as the object on...
  21. Re: Help needed for "java.io.IOException: Not in GZIP format"

    You can tell from the stack trace that the GZIP class is attempting to read the header, so it doesn't look like there is anything wrong with your code.
    Are you certain the file is a valid file? How...
  22. Replies
    2
    Views
    2,281

    Bind a textfield to an object varaible?

    I'm not sure if what i am asking about is possible, but here goes....

    If i have a simple GUI with a textfield 'address line1' and i have an address object with a string variable for 'line1', is it...
  23. Replies
    15
    Views
    6,383

    Re: Compile error for FileReader

    If you single left click on the wee yellow icon you will get a suggested solution to the problem in Eclipse.
  24. Replies
    2
    Views
    620

    Re: help - nullpointerexception error

    you are telling the calculator to push/pop an item in the calculate method, but the calculator is instantiated to null in the constructor and it isn't set to be anything else elsewhere.

    you need...
  25. Replies
    2
    Views
    1,108

    Re: Missing return statement

    Your method can either return null, or it can return a primitive type.
    Your method returns an int(shown by public int eval....), therefore you must use the keywork "return" followed by a variable...
Results 1 to 25 of 261
Page 1 of 11 1 2 3 4





Click Here to Expand Forum to Full Width

Featured