Using a Java library with Scala reserved words

人走茶凉 提交于 2019-11-26 09:58:34

问题


I\'m using an external library written in Java (Selenium). One of the function calls has the signature type(String, String), and I keep getting compiler errors when trying to call it from Scala, that is:

selenium.type(\"ab\",\"abc\")

Is there a workaround for this issue?


回答1:


selenium.`type`("ab","abc")


来源:https://stackoverflow.com/questions/1793984/using-a-java-library-with-scala-reserved-words

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!