As the title says, is it possible to use a java variable in a scala file?
Say I have two files, java1.java and scala1.scala in the same folder.
java1.java file,
public class java1{
public static void main(String[] args) {
String a = "Hello";
}
}
scala1.scala file,
object scala1 extends App {
val b: String = a // a is the variable from java1.java
}