Main not accepting [ ] square brackets when we pass arguments through object


#1

scala> object helloworld{
| def main(args: Array[String]):Unit={
| println(“helloworld”)
| }
| }
defined object helloworld

scala> helloworld.main(Array(""))
helloworld

scala> helloworld.main(Array(“abc”))
helloworld

scala> helloworld.main(Array[“abc”])
:1: error: identifier expected but string literal found.
helloworld.main(Array[“abc”])
^

Can you please let me know why Array is not accepting [ ] square brackets.