This question is so stupid ... Anyway, I just canβt find the information I need, because every class of the Scala -constructor class I see working with at least one parameter.
I want this class to translate from Java to Scala:
public class SubscriptionConverter extends Converter { public SubscriptionConverter() { Context ctx = new InitialContext(); UserEJB userEJB = (UserEJB) ctx.lookup("java:global/teachernews/UserEJB"); } (...) }
So, I only have a constructor without parameters. I confused Scala with this (), but I could not get a similar example similar to the one above. How can I write that in Scala?
source share