• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question about structure of Java programs

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure I would be interested in your reference links. Thanks.
------------------
Thanks, Dianne
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic