I am using Java 17, Maven, and i am still learning, my question is why does
String database= ""database"";
output as
'"database"'
i want it to output as "database" but when i do
String database = ""database"" it wont work.
it just outputs it with extra " or ' added. i need the output to just be 'database' or "database" with quotes included but i cannot get it to work.
I have tried to escape the quotes, using methods i have found online, nothing is working. I am doing this for a minecraft plugin config that keeps outputting wrongly, here is an example.
database:
host: host
port: 3306
database: '"database"'
username: username
password: password
i need it to be
database:
host: host
port: 3306
database: "database" or 'database'
username: username
password: password