Ìs it possible to compile file that contains both scala and java code? I\'m doing online course and was given java source files, which I need to extend. Do I have to use onl
You cannot have both Java and Scala in one file. After all it's either .java
or .scala
.
However you are free to:
...as long as they are in different files.