Reputation: 25
is it possible to write java code inside the scala template. if yes any sample code please
@while(@resultSet.next()) {
println("Mani");
String [email protected]("name");
Int [email protected]("id");
println("Name:"+name)
print( name + ", " + in);
}
Upvotes: 0
Views: 885
Reputation: 920
As Jesper says here: https://stackoverflow.com/a/6357926/2935464 you will be able to access your regular Java classes and objects in Scala as long as you use the Scala syntax.
Upvotes: 1