This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please help how to run a program?  RSS feed

 
Yevgeniy Kim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I live in Kazakhstan and do not speak angliisky you'll excuse me, I use Google translator hope you mark me))) I am learning Java textbook Learning Java 2 edition of Kathy Sierra and Bert Bates. If the study can not run the example here is an example of this code:
import java.awt *;
import java.awt.event *;
class Party {
public void main () {
Frame f = new Frame ();
Label l = new Label ( "Party Tim");
Button b = new Button ( "your bid");
Button c = new Button ( "reset");
Panel p = new Panel ();
p.add (l);
}
}

Thank you in advance pain))
 
Les Morgan
Rancher
Posts: 768
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Campbell Ritchie
Marshal
Posts: 55691
163
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

The Party class in the Head First Java book is incomplete and cannot be executed as it stands.
 
Yevgeniy Kim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Les Morgan wrote:

Thank you very much for your help for a long time thinking how to solve this example).
 
Yevgeniy Kim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Welcome to the Ranch

The Party class in the Head First Java book is incomplete and cannot be executed as it stands.

Thank you very much for your help I will keep in mind.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!