Search:

Type: Posts; User: Hibernate

Page 1 of 9 1 2 3 4

Search: Search took 0.10 seconds.

  1. Thread: ArrayList

    by Hibernate
    Replies
    10
    Views
    1,814

    Re: ArrayList

    I've recently benchmarked it, and ArrayList<int[]> is c:a twice as fast as ArrayList<Integer>.
  2. Replies
    7
    Views
    1,118

    Test moving your mouse fast in a circle and you...

    Test moving your mouse fast in a circle and you can see that it can make jumps around 100 pixels (and higher).
  3. Replies
    7
    Views
    1,118

    I think the problem is »Your imagination makes...

    I think the problem is »Your imagination makes you think the gapes are too wide.».

    When you move the mouse it feels like the mouse moves smoothly from all (or at least most) of pixels,
    but in...
  4. Just emphasising that protected constructor...

    Just emphasising that protected constructor cannot be accessed at all from another package, exception from when specifying show constructor the superclass should use.
  5. Replies
    8
    Views
    1,990

    @OP It would be nice if used code tags (the #...

    @OP
    It would be nice if used code tags (the # symbol) and indents when you post your code (you can edit your post and do so).
    It would be much easier to read the code then.
  6. Replies
    8
    Views
    1,990

    That was a great suggestion! Alternative, reason...

    That was a great suggestion!
    Alternative, reason and everything.
  7. Replies
    8
    Views
    1,990

    Did you try repaint(/*optionally an area*/) and...

    Did you try repaint(/*optionally an area*/) and use the Graphics (Graphics2D) supplied by the method paint(Graphics).
    Optionally with double buffering using BufferedImage (using its getGraphics(),...
  8. GUI:s are obsolescent. The new world will be,...

    GUI:s are obsolescent. The new world will be, once again, headless graphical terminal user interfaces.
  9. Replies
    9
    Views
    1,133

    Whether a beep is emitted depends on multiple...

    Whether a beep is emitted depends on multiple factors, some of which are:
    Terminal application (e.g. Linux VT, Command Prompt, gnome-terminal, xterm)
    BIOS settings
  10. Replies
    7
    Views
    1,118

    The simple mathematics of [and description on]...

    The simple mathematics of [and description on] Bézier curves:
    Bézier curve - Wikipedia, the free encyclopedia
  11. Replies
    7
    Views
    1,118

    Well. In response to just the title: Java, nor...

    Well. In response to just the title:
    Java, nor Windows, supports multiple mice.

    And to the text:
    The event if fired exactly for each move. If the caps are too wide the reasons can only be:
    Your...
  12. Replies
    7
    Views
    1,479

    That is the closed (inclusive beginning and end;...

    That is the closed (inclusive beginning and end; i.e. not clopen) interval tor which the variable 'a' is bound.
    'a' cannot be less than 'amin' [radians] and not more than 'amax' [radians].

    The...
  13. It may also be good to add: Constructors are...

    It may also be good to add:

    Constructors are not static; you can not use access protected constructors (in another packages) from non-static methods or initialisers, either.

    Initialisers being...
  14. Protected constructors have the package private...

    Protected constructors have the package private accessibility, i.e. only accessible from within the same package.
    However, because the superclass's constructor must run before the subclass's...
  15. RandomAccessFile is perfect for jumping into...

    RandomAccessFile is perfect for jumping into random* places in a file, and it can handle large file; it is not restricted to integer, but to long, in contrast to streams.
    Remember to not read or...
  16. Because of show being protected only the second...

    Because of show being protected only the second alternative will compile.


    Edit:
    Conclusion:
    static members do never have access to protected members in other packages.

    Edit 2:
    Also:...
  17. Do not construct, Balance, construct TestBalance:...

    Do not construct, Balance, construct TestBalance:


    Balance test[] = new Balance[3];

    test[0] = new TestBalance("K. J. Fielding", 123.23);
    test[1] = new TestBalance("Will Tell", 157.02);
    ...
  18. Replies
    10
    Views
    866

    But if you need another explanation: [1] = 1...

    But if you need another explanation:


    [1] = 1 [2] = 1
    \ / \
    \ / \
    [3] = [1]+[2] = 2 \
    | \ \
    ...
  19. Replies
    10
    Views
    866

    And yes, that was the Fibonacci numbers. Fⁿ =...

    And yes, that was the Fibonacci numbers.

    Fⁿ = Fⁿ⁻¹ + Fⁿ⁻²; F¹ = F² = 1
  20. Replies
    10
    Views
    866

    No reason to be rude[ish], but yes, I'm crazy how...

    No reason to be rude[ish], but yes, I'm crazy how else do you become a geek, and take advanced classes years before you are supposed to take them, &c.
    Are you telling me that you cannot take classes...
  21. Replies
    10
    Views
    866

    I have had simpler, examples (explain and...

    I have had simpler, examples (explain and translated):

    What is your ID on the computer network maintained by the university's school/department (do not remember which) for computer science?
    How...
  22. Replies
    11
    Views
    1,256

    Maybe next time you should think about thinking...

    Maybe next time you should think about thinking before acting.
  23. Access/visibility modifiers (in order of rank...

    Access/visibility modifiers (in order of rank [highest first]):

    public — Accessible from everywhere
    protected — Only accessible from the same package as well as from subclasses
    * — Only...
  24. Replies
    32
    Views
    1,846

    Good, swap should not be included. Yes, 1.2 GB...

    Good, swap should not be included.

    Yes, 1.2 GB is not that much, it is rather small…
  25. Replies
    3
    Views
    877

    Well, then you need to listen for file...

    Well, then you need to listen for file modifications.
    And I believe that is OS dependent, so there is (probably) no built in [in Java] method for that.
Results 1 to 25 of 222
Page 1 of 9 1 2 3 4