标签: java
如何在Java中打印变量名?
示例:
String variableString = "some string"; System.out.println(variableName);
控制台中的预期结果:
“ variableString”
我需要它来记录变量,例如:
public By buttonLogin = By.xpath("xpathExpression")