Results 1 to 2 of 2
  1. #1
    Nixter1997 is offline Member
    Join Date
    Aug 2012
    Posts
    15
    Rep Power
    0

    Exclamation Need to reuse a long piece of coding again in the program

    I need some piece of coding so that I can use this code again. In pascal to do so i used to use procedures but i am new to java and have know idea how to do so. Thanks

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Need to reuse a long piece of coding again in the program

    methods. Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    The difference is that methods are defined for classes, that is they represent the behaviour of objects (as in Delphi).

Similar Threads

  1. Working out chess piece location / piece name
    By danborgir in forum New To Java
    Replies: 5
    Last Post: 04-20-2011, 10:14 AM
  2. A simple program, need an estimate on how long it might run.
    By microbiologist in forum New To Java
    Replies: 2
    Last Post: 05-05-2010, 08:14 PM
  3. Long boolean coding style
    By Aldius in forum New To Java
    Replies: 10
    Last Post: 10-23-2009, 12:51 AM
  4. Help with a long sorting program.
    By leiferouis in forum New To Java
    Replies: 12
    Last Post: 02-04-2009, 04:46 AM
  5. Help with program coding
    By cachi in forum AWT / Swing
    Replies: 1
    Last Post: 07-31-2007, 07:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •