Search:

Type: Posts; User: jdv

Page 1 of 3 1 2 3

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    1,284

    Re: Need help creating an array method.

    And by doing this you changed the method signatures. An int is not the same as an array of ints. Look at the signature, which is where the method promises to return an array of ints. Now look at what...
  2. Thread: State diagram

    by jdv
    Replies
    2
    Views
    835

    Re: State diagram

    https://en.wikipedia.org/wiki/State_diagram

    In this case, they can mean UML or something else.
  3. Replies
    11
    Views
    1,284

    Re: Need help creating an array method.

    You'll want to paste specific compile- or run-time error messages here. No one is going to want to follow along with you based on your description of gestures you make in your IDE.

    That being...
  4. Thread: Secure Java Files

    by jdv
    Replies
    32
    Views
    4,112

    Re: Secure Java Files

    Just cutting in here to say that it is totally possible to keep someone from decompiling your classes (or make it infeasible to do so), but it requires buying or implementing a special classloader...
  5. Replies
    1
    Views
    807

    Re: problem connecting in mssql

    You probably want to show the full stacktrace.
  6. Replies
    2
    Views
    1,107

    Re: VM Instruction Pipelining

    Some /loose/ comparisons between hardware pipelining and VM performance tweaking can be made.

    AFAIK, basic pipelining (i.e., having a series of executing, decoded, and fetched instructions,...
  7. Re: How to find all the symbolic link in a directory in windows

    Don't turn yourself inside-out with all this old java.io.* stuff. Look at java.nio.file.Files and (if necessary) Path interface.

    Much cleaner, much more straightforward, and much easier to make...
  8. Replies
    10
    Views
    1,148

    Re: HourGlass [Due tonight need help!]

    By the way, you should read the requirements again. You are going to lose points on technicalities.
  9. Replies
    5
    Views
    1,060

    Re: Omitting local large variable to save memory

    Once the local variable myObject goes out of scope it will not be reachable by any other object, and thus will be available for garbage collection. However, the question is will that local variable...
  10. Re: write java program using table that stores celsius and farenheit values that are equal to one another using a loop. use C 0-20

    Look at the docs for java.util.Formatter:

    "Floating Point - may be applied to Java floating-point types: float, Float, double, Double, and BigDecimal"

    Now look at your formatter and see which...
  11. Thread: string handling

    by jdv
    Replies
    8
    Views
    1,069

    Re: string handling

    There isn't a hard-and-fast rule, but arbitrarily assigning defaults to those properties/fields that are already set to defaults for you makes larger code.

    If you use an IDE it will warn you of...
  12. Thread: string handling

    by jdv
    Replies
    8
    Views
    1,069

    Re: string handling

    Maybe not _always_.
  13. Replies
    13
    Views
    2,630

    Re: BMI Calculator, (boolean problem)

    Well, the metric vs. imperial flag is used for two things that I can see: display and output conversion.

    The former can be driven off of the flag using things like


    ... String.format("Please...
  14. Replies
    13
    Views
    2,630

    Re: BMI Calculator, (boolean problem)

    I don't see a discussion here of how booleans are used beyond syntax. Please note that we are abusing booleans here for no reason. A boolean holds a true/false state, and nothing else.

    If we have...
  15. Replies
    1
    Views
    1,210

    Re: Java DB - Embedded or localhost?

    You can use almost any RDBMS with JPA. The details for connecting the RDBMS to the specific JPA implementation (i.e., in this case Hibernate JPA) are going to be slightly different.

    But there are...
  16. Thread: differences

    by jdv
    Replies
    2
    Views
    747

    Re: differences

    Both are incorrect if you are referring to the single main method that any single Java app must have. The signature must be "public static void main(String[] args)" [although the modifiers can be in...
  17. Replies
    2
    Views
    1,494

    Re: Convert PDf to Excel

    This is an incredibly tall order. PDF is a maddeningly convoluted standard. You should look for a PDF scanning and parsing API to interface with.
  18. Thread: java coding help

    by jdv
    Replies
    3
    Views
    942

    Re: java coding help

    This is not a small project. You need to sort out what your requirements are, and what the scope is. e.g.:

    - How will you be reading and storing the barcode information? What hardware? Where will...
  19. Thread: Resource leak

    by jdv
    Replies
    10
    Views
    1,190

    [SOLVED] Re: Resource leak

    Yes, and this is the best habit to get into. No more try { ... } finally { ... } blocks for something as mundane (and easy to forget) as invoking .close(). Especially when your finally block has to...
  20. [SOLVED] Re: Why do these two lines of code not produce the same results? ("==" vs. ".equals()")

    Post the _entire_ test program you used, and make sure you use a good text editor. The only reason that can be false is if the strings are different.

    In this case, the comparison is very related...
  21. Re: Netbeans and Eclipse compiler's output is different. My book's output is too...

    This is likely, and is an example of undefined behaviour -- that is to say, it isn't accurate to say that any of the runtime environments you mention are doing anything "correctly".

    But, you can...
  22. Re: Java application for infinite series that calculates pi

    In general, the only reason to have declared but uninitialized class variables is if they are also class properties. In which case there will, or should, be setters, getters and or initializers in...
  23. Re: I need help understanding what two aspects define objects

    My guess is that your instructor is going to focus on polymorphism and inheritance, which are two of the 4(ish) classic features of an OO language. But everyone has their hobby-horse, and your...
  24. Re: Java application for infinite series that calculates pi

    This is not true for primitives, and only true for class variables. See Norm's answer.

    And, actually, you should /not/ always explicitly assigned class variables, primitives or objects. Many...
  25. Replies
    5
    Views
    1,962

    Re: Projects For A Beginner Programmer

    https://projecteuler.net/

    This would exercise what they call "the fundamentals" in sports.
Results 1 to 25 of 72
Page 1 of 3 1 2 3