This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
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
 
Similar Threads
Tail Calls vs memoization
Project Euler problems with Scala
Scala not compiling on Eclipse
Interface combinations ...
losing data