[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Inner class error

Posted on 2006-04-23
5
Medium Priority
?
792 Views
Last Modified: 2006-11-18
I type the following in eclipse, and it complains on the syntax error "Syntax error on token "class", invalid Type ", how to correct it?
public class MyClass {
      private class MyInnerClass(){
            
      }

}
0
Comment
Question by:william007
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 1600 total points
ID: 16519206
>>private class MyInnerClass(){

should be

private class MyInnerClass {
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 200 total points
ID: 16519295
0
 
LVL 23

Assisted Solution

by:Siva Prasanna Kumar
Siva Prasanna Kumar earned 200 total points
ID: 16519783
0
 
LVL 9

Author Comment

by:william007
ID: 16531071
Thanks:-)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16533341
:-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month19 days, 4 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question