Search:

Type: Posts; User: aussiemcgr

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds; generated 49 minute(s) ago.

  1. Replies
    7
    Views
    1,731

    Re: Creating a separate method for for loop

    If that is what you are trying to do, then yes. Should result be the index of the character?
  2. Replies
    7
    Views
    1,731

    Re: Creating a separate method for for loop

    You aren't doing anything with the alphabet.indexOf(tokens[i]); call.
  3. [SOLVED] Re: [KeyStroke] - How to avoid keyboard auto-repeat ?

    For reference, my solution was suggesting something like this:

    public class ButtonMotion extends JButton implements MouseListener{
    ...
    volatile boolean animated = false; // animated...
  4. Re: Environment independent single .war generation

    Have you done any research into profiles?
    I'm not sure how much help this will be, but it sounds like this article might be a good starting point for you: Maven – Building For Different...
  5. [SOLVED] Re: [KeyStroke] - How to avoid keyboard auto-repeat ?

    Some comments:
    1. You are moving the rectangle on a different thread -- good
    2. You have not synchronized shared variables between threads -- bad
    3. You have, in my opinion, made the program more...
  6. Re: Environment independent single .war generation

    Okay, I'm a bit confused. You said:
    1. each environment needs its own configurations
    2. you want a single, general war instead of 3 environment-specific wars
    If so, how would the configurations be...
  7. Replies
    9
    Views
    1,679

    Re: List that generates new item variables?

    If I understand your problem correctly, using an ArrayList is correct:

    List<String> items = new ArrayList<String>();
    do {
    String Item;
    System.out.print("Enter Item Name:\t");
    Item...
  8. Replies
    3
    Views
    911

    Re: Is my plan realistic?

    To continue what Greg said, I imagine you already have a LinkedIn account. But if not, get one. Apart from its networking benefits, you can add any apps and web-based projects you have made to your...
  9. Re: Need help with creating a counter. conflicting constructors?...

    Why not just increment the counter in the existing constructors?
  10. Replies
    2
    Views
    1,177

    Re: Java.lang.NumberFormatException thrown

    You need to get rid of the decimal places after the number. You cannot convert a number, represented as a String, which has a decimal place on it to a Long (at least not the way you are doing it)....
  11. Replies
    13
    Views
    1,275

    Re: Boolean Method Problem

    I think that permutations...? Can't remember that stuff, lol. Although I admit it probably isn't hundreds.
  12. Replies
    4
    Views
    1,076

    Re: SEARCHING FOR STATIC VARIABLES

    Are you parsing the java source code (file parsing) or are you wanting to inspect a class at runtime (reflection)?
  13. Replies
    13
    Views
    1,275

    Re: Boolean Method Problem

    What about: myDetector.detectCurse(true, false, false, false, false);
    Or: myDetector.detectCurse(false, false, false, false, true);
    Or: myDetector.detectCurse(false, true, true, false, false);
    Or...
  14. Replies
    25
    Views
    3,483

    Re: functional programming with objects

    That's a poor analogy. No generalized project design exists. Companies do not even adhere 100% to Java's base coding standards. When companies or developers establish their project design and coding...
  15. Jenkins Jelly, Annotated Nested Class error

    I am creating a plug-in for Jenkins. To creates plug-ins for Jenkins, you have to use this weird scripting language called: Jelly, which sets up the UI in html and such, and uses Java to manage the...
  16. Replies
    25
    Views
    3,483

    Re: functional programming with objects

    Well, if we are talking about "real-world" situations, I would argue that you are handcuffing yourself if you work under the assumption that a given object knows how it should be rendered. In...
  17. Replies
    25
    Views
    3,483

    Re: functional programming with objects

    Well, you could start with the basic principle of OOP: Objects are nouns, and Methods are verbs. Your Object should never be a verb, and your Methods should never be nouns.
  18. Re: The dreaded "Error: cannot find symbol" error...

    The warnings are probably because you didn't specify the type of LinkedList:
    LinkedList<String> myList = new LinkedList<>();
    Not a huge deal if you know what your doing. I'm not sure how much the...
  19. Re: The dreaded "Error: cannot find symbol" error...

    Yeah, I don't see anything wrong with this. A word of caution though, I would put your myList.add() method in the try statement. If the read throws an error, you will be adding the previous value to...
  20. Replies
    4
    Views
    1,191

    Re: Am I Just Bad At Java? [Java Rant]

    I suspect this reveals more about you than you think. What your saying is that you have the understanding needed to replicate, but not to produce.
    I suppose it would be similar to if you taught...
  21. Replies
    5
    Views
    1,291

    Re: Handling IO Synchronization

    Would the ConcurrentLinkedQueue collection resolve that issue? ConcurrentLinkedQueue (Java Platform SE 7 )
  22. Replies
    7
    Views
    972

    Re: How to handle string with characters

    Yes, but it sounds like he manually copied and pasted the String into the code. If he did do that, the internal quotes will be a problem.
  23. Replies
    5
    Views
    1,291

    Re: Handling IO Synchronization

    The other threads were being created because I had no way of really monitoring when certain write requests were sent, and each write request needed to run on a thread other than the one which called...
  24. Replies
    5
    Views
    1,291

    Handling IO Synchronization

    I have a class (WriteExcel) which writes to an excel file. For those who don't know, Excel doesn't handle multiple access well (or at all).
    I then have another class (WriteManager) which creates a...
  25. Replies
    7
    Views
    972

    Re: How to handle string with characters

    You need to escape special characters, like the "
    Use: \" to add a single " to a String
    For example:
    String str = "1234\"567"
    Is equal to:
    1234"567
Results 1 to 25 of 498
Page 1 of 20 1 2 3 4