I have following code snippet:
def now = System.currentTimeMillis
When I want to invoke the now function in REPL, just
now
why not
now()
and shows the error
<console>:9: error: Long does not take parameters
now( )
I have following code snippet:
def now = System.currentTimeMillis
When I want to invoke the now function in REPL, just
now
why not
now()
and shows the error
<console>:9: error: Long does not take parameters
now( )