• Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Producing same result redudndantly....plz guide

    Is this the same problem as the "all subsets of a set" that you posted 4 days ago?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead o

    Between the Spanish(?) and the Java EE content I don't think I can help much here, I'm just a Java SE man. Hopefully someone else can step in quickly...
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead o

    [This](http://forum.spring.io/forum/spring-projects/web-services/30345-trouble-with-the-saaj0537-error) may be relevant?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead o

    What is the exact complete error message?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Need help with a java project for my college

    OK, let's not take over this thread with a separate discussion. SintherPal's post ignored two of the DaniWeb Community Rules: "Do provide evidence of having done some work yourself if …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Inventory program part 2

    Your array has entries, [0] thru [4]. You try to access a sixth element` inventory[5]` because your loop on line 26 goes from i=0 to i=5
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Executing bat File Using Java

    Seems you missed this first time round... That's right, a bat file is not an application. The application that runs batch files from the command prompt is cmd.exe, so you …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Executing bat File Using Java

    Personally I don't see why main throwing execptions is a problem for non-production code AFAIK, the JVM will call the main ThreadGroup's `uncaughtException` method, which (unless you installed your own …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Need help

    http://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Need help

    Start with the combo boxes invisible `setVisible(false)` Add an action listener to the button In the action listener's actionPerformed method, make the combo boxes visible
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Need help

    what label?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Executing bat File Using Java

    That's right, a bat file is not an application. The application that runs batch files from the command prompt is cmd.exe, so you need to execute something like cmd /c …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How do I add Music to my Java game.

    Java support for media has beena shambles inthe past - JMF never worked properly. The good news is that JavaFX is now a standard component in all the current versions …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Dice Rolling

    There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Help with my array

    Your mistake is declaring the same variable name twice. On line 9, just use the one you already have, don't declare a new one.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Help with my array

    Yes. YOu have TWO variables"NumberArray", declared on lines 5 and 9. The one you initialise is declared on line 9, and never used anywhere else. The one declared on line …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Help with my array

    EXACTLY what code are you executring and EXACTLY what is thet COMPLETE error message? ps Did you intend that line 9 will create a *new* "NumberArray" variable? The NumberArray that …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Output to Text

    You can use `System.setOut(PrintStream out)` to send all your console output to a file instead of the console, without having to change any other code.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    Personally I hate Scanner. It's amazing how often we get threads here where people have mixed nextInt's and nextLine's and can't understand why it's not working. It was intended to …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    You may nor want to read this post, because the embarassment will be hard to bear... You get the input string via inputString = input.next(); which reads the next token. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    I don't understand - what do you mean by "breaking at the space"? All your code does is to replace the space in the output by whatever repChar was input …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    Here at DaniWeb we try to help people learn Java and develop their Java skills. We do NOT do people's homework for them. Your post explains and teaches nothing, it …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Producing susbet of a set

    DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    In that case you just loop through the characters of the string if it's a space then break check that it's <=255 convert to binary string (see previous post for …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Preserving order in recursion.

    That's not enough info for anyone to understand where or why you are having difficulty. How far have you got - is there any code or documented design yet? Have …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how can i ???

    There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    Sorry, that's still not clear to me. Can you post an actual small example of an input/output pair? Is it like this?: in: "ab c" out: "01100001 01100010"
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in What exactly does the following statement do?

    The missing methods are because the class is declared to implement an Iterator, but has an empty body that (obviously) doesn't implement the methods declared in the Iterator interface ( …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in ASCII to Binary

    "stops working" means what exactly? You can force leading zeros by a) prepending eights zeros, then substring the last 8 chars of the result or b) add 256 to the …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Billabong Board Game

    > To access the kangaroos, you simply use getKangaroos(). What exactly does that return - is it a Kangaroo object? If so, what attributes/methods does that support?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in A telephone directory tester in Java

    Hello Kalys3. As you can see, your vague request for "help" can be seen as an attempt to cheat. Maybe that's not what you intended, but there's no way for …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in string

    OP posted two questions: > 1) What are three ways of creating a String object ? > 2) What is the difference between string concat method and simply adding 2 …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in string

    If you count methods that return a String then there will be an unlimited number of them. Internally, however, they will have to come down to one of the three …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in I need ur help

    ^ I think he's referring to the DaniWeb Rule: > **Keep It Clear** > Do not write in all uppercase or use "leet", "txt" or "chatroom" speak
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in string

    OK! "abc" new String(something); string1 + string2 The only difference I know between concat and + is their behaviour when either of the String refs is null. (ps please don't …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in What exactly does the following statement do?

    Which part is the problem? Is there really nothing in the {}? How is the class Song declared?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Remote Desktop Software using Java

    I don't think load on the main system is the problem, but it's not hard to get a quick protoype (display only) working and try some of these ideas.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in I need ur help

    So there we have 698 lines of highly technical code with zero useful comments and no specification, and we are supposed to know why it doesn't do what you expect. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Remote Desktop Software using Java

    OK, The first case is no problem. Sharing to 60 systems simultaneously could be a problem of network bandwidth if there are 60 concurrent TCP/IP connections all sending screen images …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in JavaFX FXMLLoader Invalid Property When Running

    ps I don't want to start a flame war, but in my experience NetBeans is always well ahead of Eclipse in its support for new versions of Java, it usually …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in JavaFX FXMLLoader Invalid Property When Running

    Initially looks like this ![732c545c04d43d76f48a1f56efde78b9](/attachments/small/1/732c545c04d43d76f48a1f56efde78b9.JPG "align-left") then resized... ![b2779793e86ba380ed86ac5e31c7ff57](/attachments/small/1/b2779793e86ba380ed86ac5e31c7ff57.JPG "align-left") and resized again... ![1b4d0144a782fb5697722bf6e52d2742](/attachments/small/1/1b4d0144a782fb5697722bf6e52d2742.JPG "align-left")
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in string

    Please explain exactly what is confusing you. I assume you have Googled these questions and read some of the standard answers.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Remote Desktop Software using Java

    I'm confused. Are you displaying 60 different screen on one common PC, or displaying the one common PC on all 60 other PCs? Either way you connect the sending & …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in JavaFX FXMLLoader Invalid Property When Running

    I tried your fxml file in Netbeans/Java8 and it loaded OK and diplayed a (slighly wonky) calculator-type screen. No errors. Maybe you have an old version, or a mismatch between …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in loops

    You just copy/pasted your assignment without even a moment taken to explain what help you need. That's an insult to the many people who give their time to help others …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in If we implementing interface is that inheritance ?

    Yes, that's a widely-help view. I agree, especially because it has the "diamond" inheritance problem. I think the designers also has doubts, but they were needed to retro-fit all the …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Hashset duplicate value

    APU doc says > public boolean add(E e) > > Adds the specified element to this set if it is not already present. More formally, adds the specified element e …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Offsetting Bytes

    Here's a less esoteric example that is used all the time in image processing... a common way to store a pixel is an a 32 bit int, with the red, …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Doubt in String

    Strings are supported as a special case in the compiler and are very highly optimised. The fact that they are immutable allows all kinds of optimisations that are not possible …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Need help printing out my arrays separately

    That's close. You just need to print the family before going into the loop for the titles for(int a = 0; a < family.length; a++) print family[a] for(int b =0; …

The End.