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

Search:

Type: Posts; User: Norm

Page 1 of 80 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: Need help with checking String is not a character.

    Try a javascript forum.
  2. Replies
    1
    Views
    282

    Re: How to read MDB file in java

    What variable has the null value? Look at the error message for the line number for where the error happens, then look at the line and find the variable, then backtrack in the code to find out why...
  3. Re: Still can not call my Subclass method returns. J2EE

    Are you saying that there is no problems with reading and displaying the contents of a file?
    The problem is with the program's logic: when a read and display request is made, it is done two times.
    ...
  4. Re: Still can not call my Subclass method returns. J2EE

    Is the problem with reading and displaying the contents of a file?
  5. Re: Still can not call my Subclass method returns. J2EE

    I don' think the try blocks would cause the problem that you describe.

    Can you post a short sample session with a user? Something like this:
    Ask the questions
    user enters 1
    do work for 1
    Ask...
  6. Re: Still can not call my Subclass method returns. J2EE

    These lines are still outside of the loop:

    // readFile r = new readFile();
    System.out.println("Please enter:\n 1 to add a business contact\n 2 to add a personal conatact"
    ...
  7. Re: Still can not call my Subclass method returns. J2EE

    Why have a while loop if it will only execute once? Why not use an if statement?
  8. Re: Still can not call my Subclass method returns. J2EE

    Why are there 2 while loops?
    How does the code exit the 2nd loop if the control variable's value isn't changed?
  9. Re: Still can not call my Subclass method returns. J2EE

    You haven't changed the code as I suggested.
  10. Re: Still can not call my Subclass method returns. J2EE

    Then back to one loop with the questions inside and at the top of the loop.
  11. Re: Still can not call my Subclass method returns. J2EE

    How can the initial display show option 3 if there are not any contacts entered yet?

    Is the design shown in post#49 wrong?
    Can there be an intermixing of adding contacts and showing contacts?
    Or...
  12. Re: Still can not call my Subclass method returns. J2EE

    What did you change?
    The question is still OUTSIDE of the loop?
    There are more questions inside of the loop.

    I thought there were to be two loops:
    // First loop to process input and save it...
  13. Re: Still can not call my Subclass method returns. J2EE

    Post#45 suggested there be two loops:
    1) to get the data
    2) to display the data
  14. Re: Still can not call my Subclass method returns. J2EE

    Ok what is the problem coding that?
    Put 1) inside a loop that continues until ALL contracts are entered
    Then do 2)
  15. Re: Still can not call my Subclass method returns. J2EE

    Are you asking about:
    Where the question should be asked
    vs what question to ask?

    What question to ask and what responses to allow depend on the state of the data. Boolean variables can be...
  16. Re: Still can not call my Subclass method returns. J2EE

    Did you miss my last post? I still see the question and answer OUTSIDE the loop.
    And the question/answer groups are in more than one place instead of in ONE PLACE at the top of the loop. See...
  17. Re: Still can not call my Subclass method returns. J2EE

    First thing I see is that the asking of the question and the reading of the response are before the while loop not INSIDE the loop.

    The next thing is that the question is asked in many places NOT...
  18. Re: Still can not call my Subclass method returns. J2EE

    My idea was to have ONE while loop. That was what I meant when I said:

    begin loop

    that was THE ONE while loop
  19. Re: Still can not call my Subclass method returns. J2EE

    Something like this:
    begin loop
    ask question
    get response
    do what was requested << this would be handled by switch or chain of if/else if statements
    end loop
  20. Re: Still can not call my Subclass method returns. J2EE

    There should be only one loop enclosing the asking of user choice and the handling of his choice, not a loop for handling each choice.
  21. Replies
    1
    Views
    318

    Re: Test class returning null

    Does the code you posted compile OK? If there are errors, copy the full text and paste it there.
  22. Re: Still can not call my Subclass method returns. J2EE

    The arraylist that holds Business class objects should not be inside of the Business class. The arraylist needs to be in a class where the methods that create Business class objects can get to it so...
  23. Re: Still can not call my Subclass method returns. J2EE

    How does the program get the data that goes into a Business class object?
    When does the program create a Business class object using that data?
    When does the program put that newly created Business...
  24. Re: Still can not call my Subclass method returns. J2EE

    The Main class could contain the arraylist of Business objects.
    Somewhere there could be a method that gets the data to go in the Business class object, create the Business class object and store...
  25. Re: Still can not call my Subclass method returns. J2EE

    The arraylist of Business objects should be somewhere that it is accessible to whatever classes and methods need to have access.

    Somewhere the code should gather the data needed to build a...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center