• Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Filter by annoyance

    > the Latest Posts page doesn’t filter by Recommended by default. Indeed it doesn't. I haven;t used it in ages because I rememember that it **was** filtered by recommended. DId …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Filter by annoyance

    I agree 100% When I look at latest posts, or Java posts or whatever I want to see them all. If I want to filter I can. but the default …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in convert python to java

    I can do it. How much are you paying?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Hi everyone, I'm Anhduyenaudio

    Me too (Apogee Duetta Signatures bi-amped with Quad 606Mk2s and custom crossovers)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Help with java assignment - grading method

    There's not really any "organisation of values" required in this spec. You have 4 values as parameters and all the if tests use one or more of those values. Can …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Dani in 10 year member of daniweb

    James, So sorry for coming off harsh the other week. I apologize. I know you are only angry because you care. ;)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to get string form textbox to set in Message Dialog

    It looks like your problem is lines 26/27 where you try to get the text from the text fields. The variables jtf3 and jtf4 are private to the ChuaWeiheng class, …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Python programming problem

    Why the redundant tests? Line 4: we know that i<60 because of the if test in line 2, so that part of the test is redundant. Ditto the <45 on …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Testing a console input/output

    presumably you should give it another input, eg "99\n1\n" (I'm unclear on exactly what you are testing for here)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Testing a console input/output

    I agree that isValid belongs in the enum, but I don't agree with generatng a complete error message at that level - it belongs in the UI layer. Rather than …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to edit in queue and stack using bluej

    what help EXACTLY do you need?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Testing a console input/output

    If, on the other hand, we are talking about refactoring, then I personally would go towards something like this: HashMap<String, Runnable> OPTIONS = new HashMap<>(); { OPTIONS.put("A", this::add); OPTIONS.put("D", this::delete); …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Testing a console input/output

    Violet: yes, your latest code is exactly what I was suggesting. Don't forget that your Scanner is reading text strings from as text input stream. `int` is a binary value. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Testing a console input/output

    Why are you using an ObjectOutStream? Those streams write data in a binary format that only ObjectInputStream understands (see excerpt from API doc below). Scanner expects data as simple text, …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Reverend Jim in Python IDE for MacOS

    You can download the first two chapters of Michael Driscoll's latest book, Creating GUI Applications with wxPython, [here](https://leanpub.com/creatingapplicationswithwxpython/) as a free sample from the publisher. And you can look at …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Python IDE for MacOS

    The most recent updates to tkinter that I stumbled across were Dec 2019, with build activity to end Feb 2020. However native L&F is important to me, so WxPython is …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Python IDE for MacOS

    I got the impression that tkinter was like a de-facto standard - it's the only one included in the standard dowenload (?). For learning I want to stay completely mainstream. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in New homepage and more changes

    It defines who we are and separates us from other sites. if a casual visitor spends 10 secs on the page that message is the one thing we want them …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in New homepage and more changes

    Yes, looks better to me.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Python IDE for MacOS

    I looked at IDLE, but I hated its fragmented windows. I tried PyCharm Community Edition and immediately felt at home - same overall L&F as Netbeans or Eclipse, and a …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java Help: Cannot find symbol

    Maybe this is where you are misunderstanding something... (?) When you define a float constant you need an f, eg `123f`, `3.14159f `etc so the compiler knows you want a …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java Help: Cannot find symbol

    radiusF has to be a variable fro this program, but PI is probably the obvious constant from the java.util.Math class. You can only make an unqualified reference to it like …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Created Python IDE for MacOS

    Hi Guys. I'm getting bored, and so I'm looking at Python for a new challenge. I hoped to be able to use my Java NetBeans IDE to avoid an IDE …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Find smallest positive number in C programming

    What's the most efficient algorithm you have come up with so far? (Pseudo-code or plain English will do... you can't start coding until you know what the algorithm is.)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Sorting array of suits and numbers

    Please re-read my previous answer to you. You need a [Comparator](https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(T[],%20java.util.Comparator)). Arrays.sort(array) without a Comparator only works if the contents of the array have a "natural sort order" (eg ints) …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in 10 year member of daniweb

    Not really listening because you have no intention of ever restoring the forums, you just want to win an argument. That's why you started by diverting the discussion to an …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How do I transfer the existing String array to 2D array and sort them

    Hi It looks like you are going about the transfer/print thing in a way that's making your life harder. In best OO style you should get rid of those two …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to sort names and grades

    Yes. If the `names` array is the same size as the `x` array (as seems probable) then in that loop j goes from 0 to `x.length-1`, so the `[j+1]` index …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Dani in 10 year member of daniweb

    Hi there!! I never got rid of the Java forum! Converting from a Forum to a Tag doesn't mean it's gotten rid of. https://www.daniweb.com/tags/java The conversion to a tag-based architecture …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in 10 year member of daniweb

    Hi. 11 years for me. I used to be very active in the Java forum, but since Dani got rid if it there's been less and less for me to …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to delete your own post?

    See Nick's answer in this thread.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to holisticgroup19 in Make a given number odd or even

    i think even modulus should be ==to 1 instead of 0
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in c++ turtle programming

    Netbeans support for C++ was going to be released in version 11.3 but it didn't make it Maybe it will be ready for use in 11.4, maybe not. Anyway, you …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in please guys i need the code of this program (C++)

    > Since when is this site helping scholars with their homework? Since forever. We have always been ready to help people learn by explaining where they have gone wrong, or …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Hi everyone, I'm Henry

    By your definition Java, not producing machine code, and needing a run-time interpreter for its byte codes, is a scripting language.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Shopping List Total

    You need another variable to hold the total price. Set it to zero before entering the loop. In the loop add each result to the total price. After the loop …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Function Declaration in Java

    That's not declaring an abstract method. Please read the whole thread before posting - it you had then you would know that you have defined an empty method (definition is …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in digit count and sum

    "Lazy and rude" sums you up perfectly.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Is it a correct career path?

    Q: "I want to learn first aid" A: "I suggest you start with brain surgery" C++ is a nightnare agglomeration of everything that is difficult from every other language. Definitely …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Reverend Jim in Convert List<string> to Dictionary<string, string> (C#)

    And the programming language is... I would guess c++ but, not knowing every language I don't want to assume.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Elizabeth jeff ainna

    I hope it happens for you soon as well. Who is the rest of the "we" that you walk with?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Visual basic 6.0 application

    You contact the provider to register the product for the new computer. Why is that so hard?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Edited Hi everyone, I'm oilpha112

    Interesting post! Thank you for sharing them! I hope you will continue to have similar posts to share with everyone.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in I'm a begginer, help.

    Input Mismatch Excption happens because the `nextInt` expects an integer value but the input cannot be parsed as an int. What exactly did you type for the input when you …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Edited I need help With JavaScript I am just starting

    Im just learning javascript and want to make a code for a prank on my friend. I want it that when i plug in a certain usb it will pop …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java superclass and subclass

    Use `JOptionPane.showOptionDialog` with options for True and False. Eg: String[] options = {"False", "True"}; int answer = JOptionPane.showOptionDialog(null,"Java is great?", "Question", JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null); if (answer < 0 …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Question of Python

    You are obviously expected to do some simple validation on the day number - it needs to be > 0 and <= (number of days in that month). You need …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Ok, I don't know why I am here, give me a reason to stay! :)

    Hi Unlike certain other sites we welcome and encourage discussion and opinions. Anything goes, just keep it legal and don't insult other members. What would you like to talk about?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Call center software

    i second the point about internet chat. As an ex-pat I often deal with (inbound!) call centers in a language thst is not my native language. I find that much …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to rproffitt in Call center software

    @JamesCherrill. I wish I had kept the photos a buddy sent me of such a center in the most populous democratic country in the world (It's not USA.) They were …

The End.