I have a Java API that returns a List like: I am using the below scala code: Now if I try scala syntax sugar like: it does not work. I get the error: It seems I need to convert Java List to Scala List. How to do that in above context? Answer EDIT: Note that this is deprecated since 2.12.0.
Tag: scala
Running Java gives “Error: could not open `C:Program FilesJavajre6libamd64jvm.cfg'”
After years of working OK, I’m suddenly getting this message when trying to start the JVM: I tried uninstalling, and got a message saying a DLL was missing (unspecified) Tried re-installing, all to no avail. At the same time, when trying to start Scala I get: Checked %JAVA_HOME% and %path% – both OK Can anyone help? Answer Might be a
Can java run a compiled scala code?
Can command java run a compiled scala code? If so, why do we have an exclusive command scala?
How to check existence of a program in the path
I’m writing a program in scala which call: I want to check if “svn” is available from the commandline (ie. it is reachable in the PATH). How can I do this ? PS: My program is designed to be run on windows Answer Here’s a Java 8 solution: Replace anyMatch(…) with filter(…).findFirst() to get a fully qualified path. Here’s a