About 1,210 results
Open links in new tab
  1. Methods of storing permanent data in java - Stack Overflow

    Aug 27, 2010 · You can create a class that implements Serializable with a field for each piece of data you want to store. Then you can write the entire class out to a file, and you can read it …

  2. How To Store Data In Java | Storables

    Oct 27, 2024 · Optimize data storage in Java applications by combining built-in options like arrays and collections with external options such as databases, serialization, and JSON/XML formats. …

  3. How to store data in Java - Blog - Silicon Cloud

    There are multiple ways to save data in Java, here are some common ways: 1. File saving: using Java’s File class and related input/output streams to save data to a file. Using classes like …

  4. java - Where/how to store program data? - Software …

    Jun 29, 2016 · I'd normally expect you to have some sort of model object separate to the controller. That would manage the handling of your data and perhaps delegate to some sort of …

  5. How to store data in Java objects - InfoWorld

    Jan 20, 2020 · In this tutorial, you’ll learn how integral types hold whole numbers, floating point types hold real numbers, and string types hold character strings. Then you’ll get started with …

  6. Best way to store data between program runs in java?

    Apr 29, 2014 · What is the best way to store data between program runs in Java? I already know that you can use a text file and store the information that way, but I was wondering if there is a …

  7. Java Variables - W3Schools

    Variables are containers for storing data values. In Java, there are different types of variables, for example: String - stores text, such as "Hello". String values are surrounded by double quotes. …

  8. How to store data in a Java program : r/learnjava - Reddit

    If you want to store Java Objects, use serialization. See: r/javaexamples: Serialization of Objects and other Data Structures. This is the native Java way and you don't need any external …

  9. Working with JSON Data in Java - GeeksforGeeks

    Nov 26, 2022 · In the below given example, you will see how you can store values in JSON format. Consider student information where Stu_id, Stu_Name, Course is an entities you need …

  10. Storing a Java collection in a file storage - DEV Community

    Feb 15, 2024 · We implemented a small library: a Java collection data is stored in a file system instead of RAM and a convenient, Java Stream like interface for operating on data is provided. …

  11. Some results have been removed