Skip to content

Simple CRUD System in Java with JSON Integration.

Notifications You must be signed in to change notification settings

RobisonTorres/Java_JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CRUD System in Java with JSON Integration

Intro

The primary goal of this project is to demonstrate the use of Java for handling JSON data.

Features

  • Main.java - This script executes all the app's functions.

  • ProjectStockApp.java - This script gathers all the app's functions. Functions present in this file are:

  1. checkInput - Checks if the user's input is valid.
  2. add - Adds new products to the stock.
  3. update - Updates the products present in the stock.
  4. delete - Deletes products present in the stock.
  5. read - Reads all the products present in the stock.
  • stockProducts.json - The file gathers all the stock information like name, price and quantity of each product.

Prerequisites

  • Java language
  • Dependencies on pom.xml: jackson, apache.

Usage Instructions

To use this repository, follow these steps:

  1. Clone the repository to your local machine.

    git clone https://github.com/RobisonTorres/Java_JSON.git
    
  2. Install required Maven dependencies.

  3. Navigate to the directory.

  4. Execute the Main.java.

Example

After running the file you will be able to access the app's menu:

*****Menu Options**** 
=====================
*********************
1. Add new product
2. Update a product
3. Show all products
4. Delete a product
5. Exit the program
*********************
Enter your option: 3

Product        Price     Quantity  
Headphones     15.99     10        
Laptop         200.0     10        
Smartphone     70.0      40        
Tablet         99.99     2         
Mouse          15.28     50        
Tv             699.99    2         

About

Simple CRUD System in Java with JSON Integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages