Search:

Type: Posts; User: aussiemcgr

Page 1 of 20 1 2 3 4

Search: Search took 0.74 seconds.

  1. Re: Has JAVA changed alot in the last 12 years?

    It has changed a lot. To the extent and the specifics, I cannot say because it hard to find an exact list. The introduction of Generics in 2004 was pretty significant for shaping how Java looks these...
  2. Re: Best Way of Doing This Complex Multithreading Situation

    The Master-Thread will probably need to be awake for about 30 minute intervals, at which point it will be used extremely heavily, but the downtime between the intervals can probably be anyway between...
  3. Best Way of Doing This Complex Multithreading Situation

    I am creating an application with Java ME Embedded 8.1, which will run on the quad-core Raspberry Pi 2 Model B. The Pi system communicates with several external devices via bluetooth, and needs to be...
  4. Re: A more acceptable way of writing to files

    String folderPath = targetFolder.getText();
    if (new File(folderPath).exists() == false) {
    new File(folderPath).mkdirs();
    }

    If you are interested in nitpicking, this...
  5. Replies
    20
    Views
    366

    Re: Java Test Failing

    3. Have you unit tested the findOne() method to make sure that it works as expected, however?

    As for the stackoverflow link, how is that much different than what you have now? The suggested answer...
  6. Replies
    20
    Views
    366

    Re: Java Test Failing

    Okay, so running down the list of checkmarks we need to make. As a summation of where we are at right now, just answer yes or no for the following:
    1. You are able to confirm that the query was not...
  7. Replies
    20
    Views
    366

    Re: Java Test Failing

    Are you able to somehow look at the value in the repository after the update? I'm trying to rule out any issues with the Material object.
    Also, instead of throwing an exception from your test...
  8. Replies
    20
    Views
    366

    Re: Java Test Failing

    Are you sure you are setting correctly in the query? I don't know the syntax off the top of my head, but it seems odd that the '=' character would be used for BOTH assignment and comparison.
  9. Replies
    20
    Views
    366

    Re: Java Test Failing

    Okay, so what I'm seeing is that in the actual test method, the material variable isn't being updated with the new count value. You are updating the material perhaps in the database or wherever with...
  10. Replies
    3
    Views
    475

    Re: Programming structure question

    Personally, I would do the following:
    1. Create a new DTO (Data Transfer Object, meaning just a normal java class with a constructor and variable which simply hold data) called: "SizeObject"
    2. In...
  11. Re: Is it possible to convert a Java program to an Android app?

    My suggestion would be to do the following:
    1. Divide your desktop user interface from your project. Create a new project and move all of your user-interface-independent (business logic) code into...
  12. Re: how to make text label change, depending on text area value?

    Continuing on what Norm said, check the case (the .equals method is case sensitive, so a false result will happen if a single character has a different case) and check for extra space characters.
  13. Re: Android Studio, Java, compare EditText[] with a String[]

    Can you create an equivalent String using methods from the EditText class?
  14. Re: Compilation : compile with new JVM version and run on older version.

    Are you using any build tools?

    I think with Apache Maven you could do something like:
    Put all of your Hazealcast functionality in a separate project, and add that separate project as a...
  15. Replies
    6
    Views
    256

    Re: if statement on set method

    You should wrap all of your steps in your if statements with curly brackets. Otherwise, only the first step is actually part of your if statement body.

    For example, this code:

    if (getSalary() <...
  16. Algorithm for calculating lines for paragraph

    I have a weird question. Okay, so given a font size of 12pt, a font type of Arial, 1 inch indentations on left and right for a normal word document page, and a paragraph of text, I need to be able to...
  17. Replies
    1
    Views
    214

    Robot Canceling with Keystroke

    I'm playing around with the Robot class, and I came across something I am unsure of.
    Let's say I have a Robot running in an infinite loop doing repetitive tasks in MS Excel. At some point, I will...
  18. Replies
    0
    Views
    229

    Java ME Embedded 8.1

    So I was planning on playing around with Java Embedded Micro Edition 8.1 on a simple microcontroller device and I had some questions that I wanted to see if anyone could answer for me. I am trying to...
  19. Replies
    0
    Views
    232

    Looking For A Creative Solution

    I'm looking for a creative solution to a problem. I am trying to design a cache which contains a path as the key and an object (DTO) as the value.
    The path can be formatted 2 ways:
    1....
  20. Re: ClassCastException being thrown?

    It's not the problem, but you should type the ArrayList in your formatData declaration to prevent other types of casting ambiguities:
    private static ArrayList<Integer> formatData(String dataInput)
    ...
  21. Re: ClassCastException being thrown?

    Just to verify, the problem isn't in the formatData() method, correct?
  22. Replies
    0
    Views
    206

    Suggestions for database hosting

    So I have a domain I own, and a website I manage with AWS. I am currently using their 1 year free tier. I set up a database instance which should have been acceptable for the free tier (the database...
  23. Replies
    1
    Views
    122

    Re: testing ActionListener inner class

    You can't access the private class from JUnit, and the actionPerformed method itself doesn't return any value.
    What I would do is:
    1. Check the value of myGreetingField: assume not "Guten Tag"
    2....
  24. Replies
    3
    Views
    166

    Re: Website Security Questions

    Well we were talking about something like:
    1. User requests password reset
    2. We send the user an email with link to reset password
    3. Link makes user answer security questions
    4. We allow user...
  25. Replies
    3
    Views
    166

    Website Security Questions

    So I've been working on a website, and the topic of security questions has come up. I've been reading a lot online about them over the past day or two, and it seems like a lot of people are...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4