Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

bizarre! please somebody help me

 
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
 
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
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic