eclipse - startsWith 方法在 Eclipse 中显示下划线
问题描述
List days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
List weekend = days.findAll { it.startsWith('S')}
println days
println weekend
其中,startswith方法在eclipse中显示下划线。
有谁知道发生了什么?
解决方案
尝试使用双引号:it.startsWith( "S" )
推荐阅读
- dictionary - 定义一个空字典,其中值是抽象类型的子类型
- openssl - 是什么导致 openssl 签名验证预制件比 GPG 快 5 倍?
- java - 在侦听器中使用 ConsumerRecord<> 时值不返回调用方法
- c++ - boost_chrono_FOUND to FALSE so package "boost_chrono" is considered to be NOT FOUND
- r - 如何创建基本 R Barplot 并将其与 abline 回归线对齐?
- postgresql - Postgresql 使用约束将主键添加为串行
- java - Spring MVC 会话管理
- java - 如何简化巨大的 switch-case 表达式?
- azure - 如何将一列的最大值最小值与 Azure Data Fatory 中的另一列进行比较
- python - making new pandas columns based on min and max values