[Solved] Search for keywords and replace them with their abbreviations [closed]
Make sure to use replaceAll(). Also you could put all of the terms and replacements in an array. Like so: String text = “ALTER DATABASE, ALTER TABLE, ALTER VIEW, CREATE DATABASE, CREATE PROCEDURE, CREATE SCHEMA, CREATE TABLE”; String[] terms = {ALTER DATABASE, ALTER TABLE, ALTER VIEW, CREATE DATABASE, CREATE PROCEDURE, CREATE SCHEMA, CREATE TABLE}; String[] … Read more