• Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Derby DB is not working on mac.

    Do you mean the Java 7 that was released in 2011? Last public updates 2015? With all its unfixed bugs and security vulnerabilities? The 7 that's so old it doesn't …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Derby DB is not working on mac.

    Derby is not included in current JDK distributions, you need to download it separately and add the jars to your classpoath or project libraries. Maybe your Windows JDK is old …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Please help me, Cannot read field "image" because "this.tile[tileNum]" is n

    When you call setup you always pass 0 as the index, so all the Tile instances are stored in tile[0] and all the other elements of tile are still null.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Derby DB is not working on mac.

    Did you instal the MacOS Derby jar? Did you add that jar to your CLASSPATH? See https://db.apache.org/derby/papers/DerbyTut/install_software.html
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Derby DB is not working on mac.

    Dani is right. But to specify a location within your home folder in MacOS use the Tilda, eg ~/Documents/softechdb
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in import.java.util.Scanner

    Yes, definitely a missing import. In general we would advise against importing whole libraries (eg. import java.util.* ) because you are adding a huge number of names that you don't …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in whats the problem with my java file

    JCreator ? Never heard of it. wikipedia shows its last release as being in 2015, and the web site that links to is no longer there. It doesn't even use …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in whats the problem with my java file

    It looks like you are using a directory inside c:\Program Files\ for your own files. That's never a good idea. Create a directory in your home for such use. Make …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in i really need help with this Q, and i'm comfused with kinda bit with this q

    Frankly the plagiarism thing was a slightly empty threat. The real point is that starting with someone (anyone) else's solution will not teach you how to write a program. Working …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to rproffitt in i really need help with this Q, and i'm comfused with kinda bit with this q

    Sorry James. And I'm OK with the -1 (F) grade for that reply. Sometimes the student needs a hard zing on an assignment to learn they have to write it …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to rproffitt in i really need help with this Q, and i'm comfused with kinda bit with this q

    Is this the old Perfect Numbers question? I see over 120 solutions at https://rosettacode.org/wiki/Perfect_numbers which I could use and move on to the next issue.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in i really need help with this Q, and i'm comfused with kinda bit with this q

    By all means copy a solution from Rosettacode. Of course that probably means you would get resounding F grade for plagiarism. The whole idea is for you to work out …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in i really need help with this Q, and i'm comfused with kinda bit with this q

    How far have you got? What’s stopping you?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to fix this error?

    That code does not match the exception - it has no ImageIcons
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to fix this error?

    The error is in the Interface class, but I can't see the code for that. The exception appears to be telling you that you have passed a null value for …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How can I do this in java

    Without seeing the code there's no way to know. Why are you trying to get the graphics context? The usual way to draw stuff in Java is to subclass JPanel …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How can I do this in java

    Good choice! Any problems come back here and I'll help. For starters I highly recommend [Oracle's tutorial](https://docs.oracle.com/javase/tutorial/uiswing/layout/gridbag.html)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How can I do this in java

    You have options here: Populate the JPane with two JPanes left and right (use the default FlowLayout) then populate the left pane with the canvas and right pane with a …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to create/compile a "proto"assembler only through binary ?

    Given some way to set memory bytes, then it's totally possible. I did something like that with an IBM System 7 process control machine when we were preparing low-level software …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Hello im just a newbie.. could anyone help me Write a java program that can

    Help: yes. Write it for you: no. What help do you need to get started?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in My Approach to Automating Grocery Shopping

    That is really impressive. Look like you are doing an amazing job! Are you looking for help here, and if so what can we do?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in GOTO FUNCTION:Roulete table

    > How close is the 1:2 since there's that one green slot. Like I said, with one zero its 18:37 (ie 1:2.055). With 2 zeros its 18:38 (1:2.111)
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in GOTO FUNCTION:Roulete table

    > roulette wheels generally have slots with both a color and a number, and you have to get both right to pay off Each number is red or black according …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Hugh Nelsons in GOTO FUNCTION:Roulete table

    import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in JAVA GUI ECLIPSE

    When you get the value from the 3rd text field you could check if it's empty and treat that as a zero, eg something like int value3; if (field3.getText().trim().length() > …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in JAVA GUI ECLIPSE

    It's not clear what yo are asking... can you explain your question in more detail?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Zain_12 in Bank Account Class

    you should use the "system" function in a loop, then it works properly
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to combine Adjacent keywords into a multi-word keyword

    Assuming that your results should include "project management" rather than "project", then it looks like the logic is something like: for each word in all words if the word is …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to convert from python to java?

    wow, all that uncommented code with zero error handling just to replace `getDesktop().browse(uri);`
  • Member Avatar for JamesCherrill
    JamesCherrill

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

    The instructions are pretty clear and detailed, so what exactly is stopping you from making progress? Ps: what is the ConsoleInput class? It’s not part of the Java SE API.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in throw new UnsupportedOperationException("Not supported yet.");

    SimpleDateFormate? Where does that come from? Did you mean the standard API class SimpleDateFormat ?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Whats the best Java GUI Builder?

    I've been building Java GUIs since the mid 90's and in my opinion the best builder is no builder. Yes, you can drag and drop a pile of controls into …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Why is my Key Listener not working within the code below?

    99% of the time this problem arises because the keyboard focus is not on the component that has the listener. It can often be fixed by the slightly tacky approach …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Jinhwan in Java Program for Savings Account with Main and a SavingsAccount class

    Create a class named SavingsAccount and provide a method called deposit to allow a customer to deposit to his savings account, another method called withdraw to allow a customer to …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to rproffitt in Gaming system in vb

    From an alert here. You wrote: > Right now we dont know how to start and a code to present because our professor didnt teach the fundamentals of vb There …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to rofa_1 in Mac not detecting USB mouse

    Just try to restart your pc still mouse is not detected and go to the start and in the run type msconfig and press enter and then enter into the …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Do you participate in any other communities?

    Stack Overflow for the Java content
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Birthday paradox problem

    This is marked as "solved". Is that right?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in CONVERTING PHYTON TO JAVA

    How far have you got? What exactly do you need to move on?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Card Game War (JAVA)

    How far have you got? What help do you need?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Are we able to start coding without a computer?

    That's the it was. My first real program as a trainee programmer for IBM in 1969 was hand-written over a weekend at home on a hundred-odd pages of coding forms. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Theory on the VPN

    [This web site](https://www.aimtuto.com/2021/05/how-to-find-bug-host-for-free-internet.html) may be the answer... It seems there are "zero rated" web sites set up by various governments and ISPs for social purposes - especially for educational or …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Theory on the VPN

    > Basically these kind of Apps allow you to access internet even if you don't have data at all I believe you are mistaken about this. VPNs and tunnels still …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Cash Register Code Help

    System.out.println("pennies is 2");
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Are we able to start coding without a computer?

    In theory you should be able to code and test on a sufficiently up-market Android phone. There are also quite few apps that teach you the basics of programming on …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Richard_88 in need help with this school project

    I don’t know how it was with you at school, but I always had problems with projects and different tasks. I hid from my parents and teachers and ordered different …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Encryption Question

    > rproffitt commented: Yes, it seems like another form of ransomware Worse than that - it woild be dishonest ransomeware because the perpetrator has admitted to not having the means …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Encryption Question

    What possible reason would any sane person have to encrypt huge swathes of thir hard disk with no way to decrypt them. Or is this intended as a weapon to …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to Rythorian in Encryption Question

    Here's a 256-bit Encryption method I created with the help of Rijndael, however, I must warn you...once you encrypt something with this, there is no going back. I am finishing …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in What new features of Windows 11 can be used in Windows 10?

    i've been running the ARM version on an M1 Mac with Parallels and wow, is it fast. As a Mac user I love the new look with the soft corners …

The End.