Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm new to java and I'm recently working on a project which allows you to deposit, withdraw and create new accounts. I want to know if I can somehow save the changes after rerunning the code, for example, the change of users. I've tried several ways on the internet and they didn't seem to work.
There are a variety of ways to accomplish this. For a new programmer, I'd suggest learning how to read and write from files to start.
A simple database system is also an option, but probably more complicated than what you're looking for. This also can't be covered in one tutorial. If you're interested, you should probably do your own research and find something that works for you.
What you need is a database system.
In short, the database will store the data. Your program reads and displays that data. The user modifies it, and pass it to your program to "save" the data (which is replaced the old data with new ones in the database)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am creating a game app where you need the ability to be able to create profiles for other players and store them on your phone. I have been looking around for help, but I can't seem to find any tutorial or help for this. Does anyone know which aspect of java I need to research and learn about? I have seen that it might be to do with App-specific files but I'm not sure if that is the right thing.
You can store user information in files (XML / JSON format). You can use the database too - Android supports SQLite (SQLlite database is stored as single file). Android creates files in private folder, other applications cannot access them.
More informations about files:
https://developer.android.com/training/data-storage
Example of usage of SQLite:
https://developer.android.com/training/data-storage/sqlite
Remember not to store user sensitive data in plaintext.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
An example is like Trivago that searches other hotel websites then displays price, an image etc.
Basically what I want to do is create a meta-search engine that will search another website(s), then display the price of the (hypothetically speaking) hotel room and display an image. Also I'd like if the code will allow the info (from the other website) to be continuously refreshed. Please HELP! I am struggling and if you can provide a sample code I can use, so that I just have to put in the website. If you can't it's okay, but I need somewhere to start!! Thanks!
Data aggregators generally work in one or more of these ways:
Custom parsers for each data source (obviously, we can't answer this, as it is code written specifically for each page structure; probably easiest to realistically implement)
Data mining and AI (Google has huge amount of researchers working on this, you can't replicate it)
Providing an API for data sources to push data (since having data in a well-known aggregator is good for them; they probably won't use your API unless you show them it is beneficial for them to add code to push to your aggregator)
Using an API data sources provide to pull their data (only if they provide such an API, and if they authorise you to use it)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to design a testing system which would not allow to use google. I mean that, theoretically, the user still can do it, but the purpose is to hinder this as much as possible.
I have an idea, but I don't know how good it is. I want the question in the database to be a simple text. And when we need to load it to the test, we convert it into a picture with a watermark. But the problem is that, theoretically, it still can be recognized. Google is able to convert the text on the image into the text and then search it as a text. Google is also able to recognize images despite some hue differences on them. Does anybody have proposals on that score? What would you do?
just use robots exclusion headers on the page to tell google not to store your page. or even robots.txt
As you say if it's human-readable, google will read it. Google has millions of slaves doing OCR for them (via Re-Captcha). but if you tell google to leave your site alone, it will.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to write a program for my dad that will take an excel sheet with a bunch of tabs in one file and turn it into several files with a couple tabs. Is there a way to do this? I was trying to do it in Java, but if there is a better way to do it, I'd be interested.
You could use Apache POI. It was used in a project I worked on (although I didn't directly use it) and it seemed to do it's job. It probably has what you're looking for.
Outside of Java, I have heard that powershell has good integration with excel, although I have never actually used it for that purpose. Here's an article about it.
Hope this helps! Good luck!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a student. I need to make a application. I have built the GUI. Now I need to know how to do it?
I have heard about sql server compact, but does it work together with j2me? If not, something to solve the problem?
It will be better if you can pass me a example. If you couldn't, not worry, I just to need to know a database program for mobile (with j2me).
Could it be possible without use a database program? For example, using a text file? Or any other storage mechanism.
Appreciate any help.
In j2me you can use RMS. But you can't handle with large data. Some Third party database's also available for j2me development. You can use that API's. Also refer this existing discussion on same in this forum. And look at database connection using j2me article.