• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about structure of Java programs

 
Dianne Calhoun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering what the pattern of creating java programs is. I'm having problems knowing exactly what it is that I need to have in the programs to make them work properly. Is there a set sequence of steps that have to happen? Thanks for your help.
------------------
 
Dianne Calhoun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure I would be interested in your reference links. Thanks.
------------------
Thanks, Dianne
 
Martin Rennix
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean? Can you expand a little bit?
Martin
 
Dianne Calhoun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I know you need the following
public class Problem
{
public static void main( String args[] )
{
Do you always have to have a constructor? What are items that have to be in the program for it to run? I took a beginning C++ class and they had certain things that had to be in the program, so I always knew I had to follow a certain pattern. I'm not seeing a pattern to follow here. There might be one, and that's what I'm asking. The fellow who answered me right before you is probably right in saying, my question's answer is to long for here and to get a book. I do have some books, but I was just wondering if there was certain things that always needed to be in the program. He answered the above things that I copied into this post, and said to get a book. So, I thought maybe there might be a short answer, but I guees I'll have to do some more studying.
------------------
Thanks, Dianne
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Minimum for an application
this link and this one may be useful to you.

and variations for an application. (Applet requirements are different.) Java has lots of default stuff that takes care of the basics which is why you can get away with so little in a "HelloWorld" type application.
 
Dianne Calhoun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I'll definitely take a look at those places. I had already looked at the tutorial, and was going to do that when I get the book they said to buy. That was a really helpful example too. Thanks for taking the time to post it.
------------------
Thanks, Dianne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic