This is just a partial code of my program. I am trying to figure out how to convert a user input of string and have it be saved into the designated string (backFile) with double quotes. Just like how the String file one looks like. This is in Java.
String backFile = scan.nextLine();
String file = "greenPic.jpg";
backFile = "\"" + backFile + "\"";
Scanner scan = new Scanner(System.in); String backFile = scan.nextLine(); String file = "greenPic.jpg"; backFile = "\"" + backFile + "\""; // this code correctly wraps a string around double quotes System.out.println(backFile);

This is just a partial code of my program. I am trying to figure out how...