i trying method names of class.
there similar question in stackoverflow
with given answer:
println("".getclass.getmethods.map(_.getname))
but seems gives memory address of method.
[ljava.lang.string;@2acf57e3
is there way name of method instead?
thanks
your class method way right, print wrong.
"".getclass.getmethods.map(_.getname)
this code response type is: array[string]()
you printing array adddres: println(array[string](...))
the right way maybe:
s.getclass.getmethods.map(_.getname) foreach println