Search:

Type: Posts; User: pbrockway2

Page 1 of 20 1 2 3 4

Search: Search took 0.43 seconds.

  1. Re: Many Mods are locked out of the site and unable to help

    Still no change: popups, and no ability to actively moderate the site. Most long term posters are presently not contributing.
  2. [SOLVED] Re: Executable jar file gives different result then just running the main method

    An application's gui should always be constructed on the "event dispatch thread" which is what invokeLater() does. There are details of Swing and threads is in Oracle's Tutorial
  3. Replies
    5
    Views
    419

    [SOLVED] Re: String index out of range: -1

    You're welcome. The API docs are a handy resource - either for checking the accuracy of things your told, or for filling in details.
  4. Replies
    18
    Views
    1,380

    Re: Cannot find the algorithm

    Well, it's possible but once the number of columns grows to any size here are a *lot* of root profiles. I said it was smaller but it still increases exponentially with the width of the matrix.
    ...
  5. Replies
    3
    Views
    233

    Re: Java / Double Problem

    From a computational point of view a network address is *not* a number. Numbers are things we do arithmetic with (add, subtract etc). Things like network addresses and phone "numbers" aren't...
  6. Replies
    18
    Views
    1,380

    Re: Cannot find the algorithm

    My count of 300 equivalence classes of 4x3 matrices overcounted somewhat. It's simply not true that matrices with lexographically ordered permutations can't be converted from one into another as I...
  7. Replies
    18
    Views
    1,380

    Re: Cannot find the algorithm

    Do you have any link describing these root profiles? 36 classes seems rather small.

    I realise I wasn't counting correctly before. The description I gave before actually yields (4!+1)*4!/2=300...
  8. Replies
    5
    Views
    419

    [SOLVED] Re: String index out of range: -1

    segments.add(input.substring(checkpoint, index-checkpoint)); //reads number

    index-checkpoint will be used as (just past) the right hand end of the substring, not its length according to the API...
  9. Replies
    1
    Views
    238

    Re: need some simple help!

    Hi fidderz, welcome to the forums!

    It's a good idea to copy and paste the entire compiler message: partly because people are lazy and prefer that the compiler tells them what's going wrong (rather...
  10. Replies
    2
    Views
    352

    Re: Confused about enums

    I wouldn't say so. Enum values aren't types: they not the sort of thing you can create any instances of, much less a single instance. It is true that there is only one MyEnum.SystemX, but in that...
  11. Re: Java Code Not creating DB Connection on CMD but executing from TextPad

    Hi VinayPanwar, welcome to the forums!

    If you haven't already done so, have a read of the Annuncements page which gives useful advice about using the forums.

    It's hard to say what the problem...
  12. Replies
    18
    Views
    1,380

    Re: Cannot find the algorithm

    Can your rules (1) and (2) be used multiple times to decide that matrices are equivalent? It seems to me this has to be the case (otherwise it's hard to see how the problem is well defined).
    ...
  13. Replies
    5
    Views
    1,615

    Re: Java equivalent to .Net's AnyCPU

    Yes. The application running is the JVM and it will be 64 bit or 32 bit depending on circumstances. (Or it could be running on Linux...!)



    This is the problem, I think. You could:

    * load...
  14. Replies
    3
    Views
    520

    Re: count unique integers in a link

    What do you intend your while loop to do? It seems to me that it will spin for ever since setUniqueNumbers is not null, and remains not null for ever.

    The size() method already figures out the...
  15. Replies
    3
    Views
    202

    Re: Simple Java Help

    Your code still seems to be saying that when s and t are both less than f then the median will be t (rather than s) and that doesn't seem to be justified. I'm serious about using braces. ...
  16. Replies
    3
    Views
    202

    Re: Simple Java Help

    It's a good idea to use braces with if statements, even when the if- or else-part consists only of a single statement.



    This doesn't seem right. The first two conditions amount to saying that...
  17. Re: how do i stop the loop? it keeps repeating.

    I'll be more direct. You have two loops, and one of them shouldn't be there.

    The most logical way of determining which loop is unnecessary, and what to do about it is to address the question I...
  18. Re: how do i stop the loop? it keeps repeating.

    You have two loops in that code - which one is a problem? In fact, it might be a good idea to explain what you intend each of the loops to do.
  19. Replies
    6
    Views
    537

    [SOLVED] Re: cannot find symbol (javac)

    It's possible, it's just not very logical.

    When you declare a to be Animal[] you are specifying the type of a. You are saying "this is an array of animals", you are not saying "this is an array...
  20. Replies
    6
    Views
    537

    [SOLVED] Re: cannot find symbol (javac)

    If you intend the Animal instances that you put in to the array to eat, then you could declare Animal to implement the Behavior interface:


    public abstract class Animal implements Behavior {
    ...
  21. Replies
    6
    Views
    2,187

    [SOLVED] Re: Does anyone know any good .ogg libraries?

    Don't worry (if indeed you are!) about my comments: just being argumentative...

    I'm glad you've found the LGPL more suitable. If any actual money depends on it then I would guess a lawyer's word...
  22. Replies
    6
    Views
    2,187

    [SOLVED] Re: Does anyone know any good .ogg libraries?

    Which part of the LGPL are you referring to?

    I really am no expert about this stuff but my understanding is that having a LGPL library as a jar archive on the classpath and using the methods it...
  23. Re: Late night headache maker-unknown error

    nextInt() will throw an exception under various conditions which are described in the API documentation. Specifically if you enter letters then what results is not an int (or as the docs put it "the...
  24. Replies
    6
    Views
    2,187

    [SOLVED] Re: Does anyone know any good .ogg libraries?

    I'm no expert, but I thought LGPL was specifically supposed to allow for open source libraries as part of unfree software.

    There's no irony: copyleft fully intends to be draconian about being open.
  25. Replies
    6
    Views
    537

    [SOLVED] Re: cannot find symbol (javac)

    It makes the code easier to read if you follow Java conventions and begin variables with a lowercase letter.

    In main() you declare x to be of type Animal, but then use it to call an Eat() method. ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4