This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Compiler error about new Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compiler error about new" Watch "Compiler error about new" New topic

Compiler error about new

Aman Adhikari

Joined: Dec 03, 2011
Posts: 2
i got same problem for this code any one please help??

Arvind Das

Joined: May 28, 2011
Posts: 3

Hii Aman
Can you please tell me as why did you use "new" keyword with input? Remove them and check, it should work.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38057
Aman Adhikari wrote:i got same problem for this code any one please help?? . . .
That looks like a different error, so this ought to be a new thread. I see you have a helpful reply already.

And (even though it’s late) welcome to the Ranch
It is sorta covered in the JavaRanch Style Guide.
subject: Compiler error about new
Similar Threads
Please critic, rate or give some helpful advice
Calculating the distance between two points problem
First program by myself. Need help on one error please!
java array assignmebts
Comparison expresions