Search:

Type: Posts; User: copeg

Page 1 of 20 1 2 3 4

Search: Search took 0.61 seconds.

  1. Thread: String reverse

    by copeg
    Replies
    2
    Views
    3

    [SOLVED] Re: String reverse

    Look at the loop closely. Considering the input of the String 'me' - the length of 'me' is 2, the index of 'm' is 0, and 'e' is 1...will the loop ever reach 'm'?
  2. Thread: FASTEST List

    by copeg
    Replies
    9
    Views
    10

    Re: FASTEST List

    I'm not sure I understand your pop implementation


    /**
    * Pops an object off of the {@link LIFO}
    *
    * @return
    */
    public T pop()
    {
  3. Thread: FASTEST List

    by copeg
    Replies
    9
    Views
    10

    Re: FASTEST List

    Perhaps more progress could be made with some code. If you're willing, post the class you made, and post the code you used to profile - preferably using methods your project will rely on most, and...
  4. Thread: FASTEST List

    by copeg
    Replies
    9
    Views
    10

    Re: FASTEST List

    Than why worry about it? Let your algorithm/data crunching/whatever rely on the List interface (in other words, program to the interface and not the implementation). If you run into efficiency...
  5. Thread: FASTEST List

    by copeg
    Replies
    9
    Views
    10

    Re: FASTEST List

    Fast is completely relative to what you are doing. Some implementations of a List will be 'faster' relative to others in different ways they are used. Are you noticing performance issues? Will you be...
  6. Replies
    6
    Views
    7

    Re: Java string tockenizer

    Please keep all discussion about this issue in this thread rather than creating new threads - I have merged both thread topics into this one.
  7. Re: [Java AWT (No Swing)] - Problem with hiding user-drawn graphics

    Suggested reading: Short, Self Contained, Correct Example



    Graphics g = panel.getGraphics();


    You should not be calling getGraphics on a Component in this manner. Learn how to perform...
  8. Replies
    6
    Views
    7

    Re: A Multithreading Question

    Lots of variables involved, but in general creating many threads at once can cause complications. Threads need to be created and managed (overhead), threads can deadlock, code must be synchronized,...
  9. Replies
    5
    Views
    375

    Re: HW BEGGINER HELP !

    @Niels van Ee, please keep in mind dates the dates on threads - this one in particular is around a 1 1/2 years old, which is an eternity in internet and forum time (and in homework time, way too late...
  10. Replies
    2
    Views
    92

    Re: how to write java data to pdf file

    An internet search should be much quicker than relying on others to do your research for you. For instance, the top hit on my favorite search engine for the keywords "java pdf" - and one of the go to...
  11. Replies
    3
    Views
    78

    Re: Accessing String Array

    Did you read the link in post #2?
  12. Replies
    3
    Views
    78

    Re: Accessing String Array

    Its an array. Suggested reading:
    Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
  13. Thread: Network Program

    by copeg
    Replies
    3
    Views
    97

    Re: Network Program

    Do you have a question?
  14. Thread: Jva 8 lambdas!

    by copeg
    Replies
    8
    Views
    114

    Re: Jva 8 lambdas!

    My 0.02 on lambda's: they add a function programming aspect to Java that has been missed for years, and can make development much easier in situations where function programming may be a better...
  15. Replies
    2
    Views
    131

    Re: Java programming help - Coins in a Jar

    Break the problem down - I would recommend translating the assignment into a step-by-step list of requirements (for instance, one step might be 'get values from user'). Once you know what is required...
  16. [SOLVED] Re: Getting a calculate button to work, and clear button to reset everything.

    Suggested reading:
    How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
    GUI Builders Pitfalls
  17. Re: Question: How can I add an Item to a combobox when I click a button?

    Assuming you are referring to Swing (details matter on technical forum - unless you wish people to assume like this) - add an action listener to the JButton, within which you add the item to the...
  18. [SOLVED] Re: Error setting up Object. Issue with static vs non-static

    Suggested reading:
    Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    There is no enclosing instance of type Bank, so if you wish to use any inner classes...
  19. Re: Problem with communicating between client and server sockets in Java

    If your client has two tasks - 1) parse numbers 2) move on when it encounters a the termination character (.) - your client code must anticipate either (or both). My advice: parse the input to look...
  20. Thread: Hash Code

    by copeg
    Replies
    2
    Views
    86

    Re: Hash Code

    Recommended reading:
    Object (Java Platform SE 7 )
    Please make an effort to research your questions using books or online resources before posting them. The effort of the unpaid volunteers of this...
  21. [SOLVED] Re: Error setting up Object. Issue with static vs non-static

    Please post the error in its entirety.
  22. Re: Problem with communicating between client and server sockets in Java

    I recommend reading the API for methods you are using that the stack trace indicates:
    Integer (Java Platform SE 7 )
    The period at the end of this String cannot be parsed into a number, and will...
  23. Replies
    4
    Views
    200

    Re: Miscellaneous questions

    Your questions are best answered by typing them into your favorite search engine and hitting the search button, rather than typing them into a forum and hitting the post button. If you don't...
  24. Thread: biginteger

    by copeg
    Replies
    18
    Views
    131

    Re: biginteger

    My .02: if you are having this hard of a time with basic language syntax, I would recommend taking a step back - ignore the BigInteger class for the moment and take some time to learn some of the...
  25. Replies
    1
    Views
    97

    Re: java question on command line

    Suggesting reading:
    Announcements - What's Wrong With My Code?
    What have you tried?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4