Search:

Type: Posts; User: william

Page 1 of 3 1 2 3

Search: Search took 0.17 seconds.

  1. Replies
    4
    Views
    864

    Re: What Java Books / Resources Do you use?

    I have a few books
    I enjoy the Head First books they are fun to read and easy to understand. Head First Java and Head First Object-Oriented Analysis and Design are my first choices. Of course I...
  2. Replies
    13
    Views
    846

    Re: Dialog box not allowing user input?

    With out the code, it appears to me you are using a "Message" dialog box. If your looking for input dialog as text check this demo out.
  3. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    what ever help away I am going for my Martini. I am off work and I really don't need you.
  4. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    relax Junky answer his question then don't badger me.
  5. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    give me a few now I am going to install netbeans on this computer.

    please post all the code for me thanks.
  6. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    problem one PhoneBookEntry is not a array its a Class
    PhoneBookEntry can be implemented as ArrayList<PhoneBookEntry> book = new ArrayList<PhonebookEntry>();


    now fix the logic from this and then...
  7. Replies
    3
    Views
    857

    Re: 1 JFrame, more JPanels

    I am thinking you need a Dimension there for you need setMinuminSize(new Dimension(width, height)) ; //semi colon...
    setMaximumSize(new Dimension(width,height);
    setPreferedSize(new...
  8. Replies
    2
    Views
    739

    Re: Open file from JAR

    class path in environment variables. My best guess, missing libraries is another.
  9. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    what is PhoneBookEntry[]
    your trying to use primitives.... with out defining
    look at what wiki says about primitives
  10. Re: How to use google maps in a frame and get string

    I attempted to use maps for user interface a while back, It did not last long then our funding ran out. I use OpenGL to create a map viewer and totally user friendly. the code was crazy and we...
  11. Replies
    5
    Views
    483

    Re: Beginner pleasee help with java code

    you didn't read the document otherwise you would find that ArrayList[23] really does not relate to anything, please read then come back with some useful questions.
  12. Re: using java.util.InputMismatchException with try

    removed to stay on topic..

    Copeg how to delete a post?
  13. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    Sometimes difficult is frustrating, however you never learn unless you ask the question.

    Ok lets go over some of the Array info

    double[] d = new double[5]; //<-- you have to declare a size
    ...
  14. Re: using java.util.InputMismatchException with try

    Im going home:: have a good night


    Scanner reader = new Scanner(System.in);

    boolean flag = true;
    int end = -10 ;

    do{
    try {
  15. Re: using java.util.InputMismatchException with try

    well I finished you answer.....

    my Outputs:

    run:
    in here
    7
    end is 7
    in here
    8
  16. Re: using java.util.InputMismatchException with try

    Its not documented cause i wrote the entire thing.

    Why would you think I don't under stand this code?

    Its junk code, I use test each component before adding it to the project. This tiny...
  17. Replies
    12
    Views
    1,460

    Re: use Delimiter, Scanner Class

    good idea to read this see what it says. Just think anything can be the Delimiter

    Delimiter

    hope this helps..
  18. Re: using java.util.InputMismatchException with try

    I do understand. You don't stop to read the input line when in the Reader. you never clear out the IO stream out so you always get get same input. Use a if statement in the try catch to stop this....
  19. Thread: Copying Arrays

    by william
    Replies
    30
    Views
    816

    Re: Copying Arrays

    OK, first lets go through the words I broke up your par into thoughts.
    1) great

    2) to copy a list you need to Iterate through the list if its a primitive array then for each or for statement...
  20. Re: using java.util.InputMismatchException with try

    I think this is a good example for a do-while loop then, set the boolean within the if-else statements


    static int smartInputInt (){
    boolean flag=false;//<--- do one time unless turned to...
  21. Replies
    4
    Views
    4,254

    Re: Need help with this practice java question

    you can check for null by string == null or better yet string.equal(null);

    but yes the problem is in bold

    if you did the review on the api's then you will see that you get the int back for...
  22. Replies
    5
    Views
    483

    Re: Beginner pleasee help with java code

    First review this ArrayList and array first

    then comeback with your probabilities. You need to figure the probability math some links for it.
  23. Replies
    11
    Views
    1,369

    Re: AWT Desktop Open

    I am not sure I been in working out of Windows too long, currently if i remember that you are not allowed spaces for path names in Linux. Then again I should just fire up the VM ware for CentOS and...
  24. Re: using java.util.InputMismatchException with try

    remove line


    flag=true;

    in your catch() method
    this way you only fall through it once. Your in a while loop while true...
  25. Replies
    3
    Views
    295

    Re: What is wrong with my if/else statement?

    After I just changed a line and Parsed to int

    my output:

    Are you an undergraduate student(y or n)? y
    What is your income? 15001
    income 15001

    You qualify for $500 in financial aid.
    BUILD...
Results 1 to 25 of 69
Page 1 of 3 1 2 3