This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Languages » Scala
Reply 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
Bartender

Joined: Aug 16, 2005
Posts: 12928
    
    3

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: I failed to write : Good-looking assignment to private Array
 
Similar Threads
Tail Calls vs memoization
Scala not compiling on Eclipse
Project Euler problems with Scala
Interface combinations ...
losing data