• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bizarre! please somebody help me

 
Agostinho Felisberto
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's wrong with this?why won't complile?
package org.mypackage.hello;

/**
*
* @author Gebruiker
*/
public class NameHandler {

String name;

public NameHandler()netbeans says error is here
; expected or missing methode body or declary abstract
but in the own netbeans tutorial this is supposed to be a constructor.
name = null;
}

i took this exemple from netbeans help page to run the step two of tutorial about web services.but in my IDE there is a compile error about this constructor public NameHandler()

does somebody help me? the tutorial is here http://www.netbeans.org/kb/60/web/quickstart-webapps.html#setting
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's supposed to be



as shown a little bit later. You are missing the braces around the constructor body.
[ May 02, 2008: Message edited by: Peer Reynders ]
 
Agostinho Felisberto
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you right.thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic