当您需要将表达式值转换为所需类型时,智能代码补全将帮助您。例如,输入
String s = (<插入符号放到这里>
然后按下 &shortcut:SmartTypeCompletion; 看会发生什么。