aspose file tools*
The moose likes Scala and the fly likes I failed to write : Good-looking assignment to private Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Scala
Bookmark "I failed to write : Good-looking assignment to private Array" Watch "I failed to write : Good-looking assignment to private Array" New topic
Author

I failed to write : Good-looking assignment to private Array

Heep Po
Greenhorn

Joined: Sep 03, 2011
Posts: 3


Thanks for suggestion
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14338
    
  22

Welcome to the Ranch.

Instead of this:

try this:

(I have not tested it, but I think that will work).

The _= is part of the method name. You should put it with the method name, not after the (i: Int) argument list.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Heep Po
Greenhorn

Joined: Sep 03, 2011
Posts: 3
Thanks to your response, Jesper de Jong, but your solution produces compiler error.

And I've got the solution at:
http://scala-forum.org/read.php?3,549,551#msg-551
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I failed to write : Good-looking assignment to private Array