Search:

Type: Posts; User: jdv

Page 1 of 4 1 2 3 4

Search: Search took 0.18 seconds; generated 17 minute(s) ago.

  1. Replies
    6
    Views
    367

    Re: add keywords to the java language

    Write a Java app that transforms the Java source fed into it into Standard Java and runs the compiler against it.

    Though, this is not really doing your students any real service. Computer language...
  2. Re: Advices on obfuscation and keep the related systems working.

    Yes, given enough time and space, you can break anything. The question is, has the target made the space large enough, or the time long enough, such that the value of the target is diminished in...
  3. Re: Advices on obfuscation and keep the related systems working.

    There is a whole suite of licensing and deployment management tools from Wibu systems. I think the product is called AxProtector. (This is not an advertisement; I just have experience integrating...
  4. Re: Advices on obfuscation and keep the related systems working.

    There are many Java obfuscators. Most work on the compiled classes, so that a decompiler makes hard to understand source later on. They also restructure the code (which you can do yourself, though it...
  5. Replies
    6
    Views
    367

    Re: add keywords to the java language

    Do you mean a different /natural/ language? For example, you want to change "class" to "classe" so it uses French words?

    If so:

    1. Write your own JVM-based language, or;
    2. Write a Java...
  6. Re: Catching Multiple Exception Types in single catch block??

    This is not a case where you want to use this language feature. Just catch the exceptions separately.
  7. Thread: Java classes?

    by jdv
    Replies
    1
    Views
    162

    Re: Java classes?

    The compiler is being as clear as it can be. "theSides" is used as an object, but it is never set to an instantiated object. And no one knows that the getSides() method is or does.
  8. Replies
    11
    Views
    407

    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...
  9. Thread: State diagram

    by jdv
    Replies
    2
    Views
    171

    Re: State diagram

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

    In this case, they can mean UML or something else.
  10. Replies
    11
    Views
    407

    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...
  11. Thread: Secure Java Files

    by jdv
    Replies
    32
    Views
    922

    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...
  12. Replies
    1
    Views
    143

    Re: problem connecting in mssql

    You probably want to show the full stacktrace.
  13. Replies
    2
    Views
    311

    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,...
  14. 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...
  15. Replies
    10
    Views
    568

    Re: HourGlass [Due tonight need help!]

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

    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...
  17. 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...
  18. Thread: string handling

    by jdv
    Replies
    8
    Views
    234

    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...
  19. Thread: string handling

    by jdv
    Replies
    8
    Views
    234

    Re: string handling

    Maybe not _always_.
  20. Replies
    13
    Views
    641

    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...
  21. Replies
    13
    Views
    641

    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...
  22. Replies
    1
    Views
    365

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

    by jdv
    Replies
    2
    Views
    135

    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...
  24. Replies
    2
    Views
    432

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

    by jdv
    Replies
    3
    Views
    211

    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...
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4