Java, name comparison from database and web app [closed]

I want to compare 2 strings, one is in database, and second is located in … Read more Java, name comparison from database and web app [closed]

I want to compare 2 strings, one is in database, and second is located in file, that I import to my web app.

I need to make a code, which compare this 2 strings (when I import file to web app), and if they are different I got an alert (Name from Database is different then current one, do you wanna replace it?), for example:

  1. Database: NameOfCar = Toyota
  2. File: NameOfCar = Ferrari

If I got an alert, and I click button Replace name, new name Ferrari, is automaticly imported to my database, and it replaces the previous value Toyota.

I need a solution, how to do this. My code have to read the data from database, compare it with file, when I import it on my web app, and replace the name if I want it.

Do you have any tips how to do this?

Source: React – Stack Overflow


Categories: NewsTags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *