Search Results - CodeGuru Forums
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.02 seconds.

  1. Re: Program to find free disk space in linux using JAVA

    :d
  2. Replies
    7
    Views
    1,014

    Re: For Loop Help

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

    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...
  4. 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...
  5. Replies
    11
    Views
    1,731

    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.
  6. Replies
    11
    Views
    1,731

    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...
  7. Replies
    11
    Views
    1,731

    Re: Exception handling for the wise!

    Well a long is a number - passing "sdfg" to it isn't going to work is it?
  8. Replies
    17
    Views
    4,479

    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.
  9. Replies
    11
    Views
    1,731

    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...
  10. Replies
    3
    Views
    784

    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
  11. Re: Simple Calculator, simple problem - but how to fix?

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

    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)...
  13. Replies
    11
    Views
    1,731

    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...
  14. Replies
    3
    Views
    1,229

    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.
  15. 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
  16. Replies
    7
    Views
    3,017

    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.
  17. Replies
    4
    Views
    7,704

    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;
    }

    ...
  18. Replies
    4
    Views
    7,704

    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.
  19. Replies
    4
    Views
    991

    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...
  20. 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...
  21. Replies
    2
    Views
    1,590

    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...
  22. Replies
    15
    Views
    3,954

    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.
  23. Replies
    2
    Views
    518

    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...
  24. Replies
    2
    Views
    988

    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...
  25. Re: Method call delegation to child class possible?

    The abstract method worked a treat - many thanks.
    I was not aware of the super() call being allowed anywhere in a method - thanks for the headsup :thup
Results 1 to 25 of 260
Page 1 of 11 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center