Edit Path in Java Edit Variable

I am using Java edit variable to add folder to the root dir based on need

String fname=“/NCLThomsonSettlements”;

String filename=“/SettlementsPrelimFileAnalysisFidelity”;

Input_Dir = N:\TOOLS\Allocaton Settlement Process Docs\CAL AUTOMATION

I am using this to get the Dir appeneded to the folder name and file name

outexceloutput = vInputDir+fname+filename+“_QA”+“.xlsx”;

outexceldir = vInputDir;

outexcelfolder = vInputDir+fname ;

outexcelfilename = vInputDir+fname+filename+“QA”+“.xlsx”;

The problem is its not letting me add \ but only allows me to use /

so my output is as below which si wrong

N:\TOOLS\Allocaton Settlement Process Docs\CAL AUTOMATION/NCLThomsonSettlements/SettlementsPrelimFileAnalysisFidelity_QA.xlsx