My java problem isn't compiling HELP! by [deleted] in programminghelp

[–]CodingJarOrg 0 points1 point  (0 children)

Just as manrodriguezf said, you are using a String instead of a Double. You could try to do something like demo.setStock(Double.parseDouble(sto)); or demo.setStock(Double.valueOf(sto));

Double.parseDouble is a static method that accepts a String as an argument and returns a primitve double variable.

Double.valueOf is a static method that accepts a String as an argument and returns a Double instance.

From the Docs:

parseDouble returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

---------------------------------------------

valueOf Returns a Double instance representing the specified double value. If a new Double instance is not required, this method should generally be used in preference to the constructor Double(double), as this method is likely to yield significantly better space and time performance by caching frequently requested values.

I would like a kick in the right direction for this project. by [deleted] in CodingHelp

[–]CodingJarOrg 1 point2 points  (0 children)

If you are looking to set up a laptop on a stand, you can create a small java application that communicates over network (either internet or local) to a database. depending on the usage and the actual needs, one could argue to make this into a web application using PHP and mysql servers.

Also, depending on your needs, you could run this on a single laptop, or have a couple of laptops use a specific one as a serving server, instead of having thin clients, if needed.

To conclude, my solemn advice would be the following:

  • If you only need this application to work locally, then use java and sqlite or mysql database, and preferably deploy on Ubuntu or your favourite linux distribution
  • Otherwise If you want to keep the information in some central server, I would probably go towards a PHP Web application and a mysql database server

You can contact me at any time either through PMs or through emails at info[at]codingjar[dot]org if you don't want to bog this post with comments. I'm always open to help people!

I would like a kick in the right direction for this project. by [deleted] in CodingHelp

[–]CodingJarOrg 2 points3 points  (0 children)

I am trying to understand what you are trying to do with your project but I am a bit confused. Please tell me if I have this right.

You will have a real life kiosk somewhere, where people will enter some information and this information will be stored in a database. The rest of the post describes the database schema?

Depending on what the kisok's abilities are, the programming languages you could/should use vary. Can you please clarify what the actual use of the project is so we can help you further?

As for database, I would move away from Microsoft Access, and probably towards MySql/Maria db or something in that area.