Search:

Type: Posts; User: jdv

Page 1 of 3 1 2 3

Search: Search took 0.39 seconds.

  1. Replies
    12
    Views
    132

    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...
  2. Replies
    1
    Views
    104

    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...
  3. Thread: differences

    by jdv
    Replies
    2
    Views
    70

    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...
  4. Replies
    2
    Views
    143

    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.
  5. Thread: java coding help

    by jdv
    Replies
    3
    Views
    106

    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...
  6. Thread: Resource leak

    by jdv
    Replies
    10
    Views
    118

    [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...
  7. [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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. Replies
    5
    Views
    313

    Re: Projects For A Beginner Programmer

    https://projecteuler.net/

    This would exercise what they call "the fundamentals" in sports.
  13. Thread: import question

    by jdv
    Replies
    6
    Views
    190

    Re: import question

    My preference has everything to do with the IDE I am, or am not using. Eclipse, Netbeans, etc. can maintain and primp the imports list to any degree. Why not let them handle this grunt work?

    If...
  14. Thread: import question

    by jdv
    Replies
    6
    Views
    190

    Re: import question

    Good ref: Java: Packages and Import
  15. Replies
    5
    Views
    127

    Re: To creating user defined packages

    Your teacher must have instructed you in some manner. What have you tried? You need to show us that your are actually attempting to do the work here. This forum will not do your homework for you.
    ...
  16. Replies
    24
    Views
    288

    Re: Not sure where my problem is

    That is the opposite of a "successful" build. The compiler cannot turn your code into a real class you can instantiate.

    NetBeans should show you exactly what is wrong. Hint: if you don't know what...
  17. Replies
    5
    Views
    127

    Re: To creating user defined packages

    Start here: Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages)

    Then come back with specific questions.
  18. Replies
    4
    Views
    327

    Re: The IF control statement

    Typically, an object is a black box that contains something you want. The box has no obvious ways to get inside it, but it has 0 or more buttons on it that you can press to get information about the...
  19. Replies
    16
    Views
    262

    Re: Help with a client server program

    My advice is to look at Java WebSockets for this sort of thing.
  20. Re: want to modify code that converts binary code to decimal numbers

    How many times do you call Input.nextInt()?

    How does the program know how to do what you want it to?
  21. Replies
    3
    Views
    197

    Re: Load a vb.net dll in java???

    This is actually somewhat possible, depending on the DLL in question, but it is a tricky process that (as pointed out upthread) gives you a strong dependency to a specific platform and specific...
  22. Re: How to detect current memory free and used in java program ?

    Correct, because how the memory is used and reported by the VM is only partially related to how the underlying platform specific memory resource allocations work and are reported. Windows Task...
  23. Replies
    2
    Views
    122

    Re: java package problem

    Package "mtv" contains a single class, "india". (BTW, please use Initial capitals for classnames.)

    In package "web" you declare a single class "chair", and import "mtv". But you never use a...
  24. Replies
    2
    Views
    398

    Re: "A Java Exception has occurred"

    Show us how you are running this code.
  25. Replies
    2
    Views
    153

    Re: Help with constants!

    We are FINALly going to hear some STATIC about this, aren't we?
Results 1 to 25 of 59
Page 1 of 3 1 2 3