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

Search:

Type: Posts; User: BigDadd215

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Still can not call my Subclass method returns. J2EE

    just displaying the txt file... I write to them correctly..... I can open files with notepad and see everything in there correctly.... But always displays 2 files instead of just one...

    Look at...
  2. Re: Still can not call my Subclass method returns. J2EE

    Everything else works fine....... I can even open the txt file in notepad and everything is there... but the import and displaying it has the problem.
  3. Re: Still can not call my Subclass method returns. J2EE

    Could it be possible that I have an issue with my try blocks that read and import my txt files?
  4. Re: Still can not call my Subclass method returns. J2EE

    I hae the loop exited correctlt now by removing 4 form the loop..... Still same issue with showing the contacts.... :(
  5. Re: Still can not call my Subclass method returns. J2EE

    Just tells me the program has exited.
  6. Re: Still can not call my Subclass method returns. J2EE

    I have removed all WHILE loops except at the beginning, now I have an infinite loop when I select to view my contact.


    package contacts2;

    //import java.util.ArrayList;
    import...
  7. Re: Still can not call my Subclass method returns. J2EE

    At the end of the code, I change the user's input to the exit #4

    Example: "enter" is the variable I am using for 1-4 (with 4 being the exit) ....At the end of the code for 1a-3a, I put "enter =...
  8. Re: Still can not call my Subclass method returns. J2EE

    As I run a single While loop at the beginning, I get a continues loop when I select which contact to view.....

    Is this the basic layout?


    ***Ask initial question
    While loop (1-4)
    1)If add...
  9. Re: Still can not call my Subclass method returns. J2EE

    That is what I have saying .... I still get issues with run-time.
  10. Re: Still can not call my Subclass method returns. J2EE

    I still must be able to give the option to show the unpopulated file and produce it if so desired...... Stupid I know, but none the less it is what is required... It would have been a lot easier the...
  11. Re: Still can not call my Subclass method returns. J2EE

    Did I mention that my initial display has to give options
    1) add business contacts
    2) add personal contacts
    3) show contacts --then lead to which contact
    4) exit

    So it should look like:

    1) ...
  12. Re: Still can not call my Subclass method returns. J2EE

    I have implemented 2 while loops and using my if conditionals inside the loops.... I still am having the problems with showing my contacts.... I get both when I am supposed to show business, I get...
  13. Re: Still can not call my Subclass method returns. J2EE

    I guess the correct question is: How do I put the #2 above my while loop and only ask for it when ready?.... I thought I was already doing that.
  14. Re: Still can not call my Subclass method returns. J2EE

    I just don't want to ask which contacts you want to be displayed before you enter in any contacts...

    Order of Operation:
    1) ask user to enter in contacts, which can be in any order and switch...
  15. Re: Still can not call my Subclass method returns. J2EE

    I might be new, but would I want to ask which contact to show at the same time I ask which contact they would like to enter? If I am understanding you correctly, I should put this code:


    ...
  16. Re: Still can not call my Subclass method returns. J2EE

    Some how I have made it worse....... :(



    package contacts2;

    //import java.util.ArrayList;
    import java.util.Scanner;
    //import java.util.ArrayList;
    import java.io.File;
  17. Re: Still can not call my Subclass method returns. J2EE

    Now I get a continues loop that wont exit after I select which contact that I want to see goes straight to (enter == 4).... I now don't get my contacts, any of them.


    package contacts2;
    ...
  18. Re: Still can not call my Subclass method returns. J2EE

    I started off with a "while(enter = 3)" and carried to if/else statements, but I still get the same result... Am I missing something vital from your last response.





    while(enter == 3)
    ...
  19. Re: Still can not call my Subclass method returns. J2EE

    Thanks for the advice on the adding of contact.... I am still having a problem showing my contacts.... When I select to show just the business contacts... the business and personal show up, when I...
  20. Re: Still can not call my Subclass method returns. J2EE

    Hello Norm... I have most of the code know work, thanks for all the guidance...

    I do have 2 small issues still:
    1) When I select the personal contact to enter, I can't go back and enter another...
  21. Re: Still can not call my Subclass method returns. J2EE

    The main class looks builds the objects of business class, from there it passes to the business class to ask the questions..... From there is where I wanted to build the ArrayList.....
  22. Re: Still can not call my Subclass method returns. J2EE

    I will need to call, for example, all the business contacts.... It should print out all First Names, Last Names, Addresses, etc..
  23. Re: Still can not call my Subclass method returns. J2EE

    Would it make sense for me to make a class that is designed to make the arraylist from the objects that the Business class creates?

    Kinda like the main called the business class to ask questions...
  24. Re: Still can not call my Subclass method returns. J2EE

    I am lost on your first sentence......

    I am sure that I have an issue somewhere, but I have no idea where... That is what I have trying to do...... In the Business class, it receives an input for...
  25. Re: Still can not call my Subclass method returns. J2EE

    I do not get an error when I run the code,.... I just can't get the name Drew to add to the ArrayList.....I am not too sure where to put


    If I put in main class, I am told that it could not find...
Results 1 to 25 of 46
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured