Tuesday, 28 August 2012

The Flow Control & Arrays



Programs are much more than the simple sequential execution of statements.  We often need to excute a section of code repeatedly, perhaps with a change of some of the program's state each time.  We also commonly need to execute different sections of code depending upon whether some condition is true of false.  This lesson will discuss these two types or flow control that are commonly seen in programs: Looping and Branching. An array is a very common type of data structure where in all elements must be of the same data type. Once defined , the size of an array is fixed and cannot increase to accommodate more elements.The first element of an array starts with zero.

Click here for more info

22 comments:


  1. To learn more, just click this link :)


    http://home.cogeco.ca/~ve3ll/jatutor3.htm

    This will help us learn :))

    ReplyDelete
  2. Click this link.

    http://www.hostitwise.com/java/flow_of_control.html

    here are some tutorials for the flow controls & arrays of Java.
    HAVE FUN! :)

    ReplyDelete
  3. To learn more about arrays just clink this link :

    http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html

    And this link for control flow statements :

    http://docs.oracle.com/javase/tutorial/java/nutsandbolts/flow.html


    :))

    ReplyDelete
  4. To know more about flow control just click this link:
    http://perl101.org/flow-control.html

    ReplyDelete
  5. String[] skiResorts = {
    "Whistler Blackcomb", "Squaw Valley", "Brighton",
    "Snowmass", "Sun Valley", "Taos"
    };

    Question:What is the value of the expression skiResorts.length?
    Answer: 6

    Why? "Whistler Blackcomb", "Squaw Valley", "Brighton",
    "Snowmass", "Sun Valley", "Taos"
    }; These are the elements stored in the array skiResort so the expression ask for the length or how many were stored in it. so by counting it is 6.
    As we go to the definition as it says that the idea of storing multiple values which are accessed by a numeric index.

    for more interesting exercises for a better scholastic understanding visit:
    http://enos.itcollege.ee/~jpoial/docs/tutorial/java/data/QandE/arrays-questions.html

    ReplyDelete
  6. this link can help us to understand more about flow control..

    http://blogs.mathworks.com/loren/2009/11/12/empty-arrays-with-flow-of-control-and-logical-operators/

    ReplyDelete
  7. try this link, some sample codes:

    http://joelgompert.com/csce190/flow_arrays_methods.pdf

    ReplyDelete
    Replies
    1. thanks for sharing the link. i learned a lot.

      Delete
  8. Replies
    1. yes Ms. Marrie,another one is here.. hope it us helpful.... http://www.indiabix.com/java-programming/flow-control/

      Delete
    2. kaya nga..halospare-parehas lngmga flow controlng mga programming languages :)

      Delete
  9. Did you that Java offers all the control-flow constructs that C++ programmers found endearing: if, if-else, while, do-while, for, and switch.But Java doesn't offer the goto.<3

    ReplyDelete
  10. to know more about flow control, just click this link

    http://home.cogeco.ca/~ve3ll/jatutor3.htm

    ReplyDelete
    Replies
    1. thanks for sharing the link... i learned a lot,,very much..

      Delete
  11. An array is a very common type of data structure where in all elements must be of the same data type.
    Once defined , the size of an array is fixed and cannot increase to accommodate more elements.
    The first element of an array starts with zero.

    ReplyDelete
    Replies
    1. Your right my friend. It always start with zero (0).

      Delete
  12. tutorial in java? visit this link ^^

    http://www.tutorialspoint.com/java/java_arrays.htm

    ReplyDelete
  13. Normally the statements that make up a Java program are executed in the order that they are written. To allow for more flexibility, a control flow statement can be employed to execute statements based on whether a certain condition is met. The type of control flow statement will determine whether the statements are executed once, more than once and where the flow of execution will continue.

    ReplyDelete
  14. java declations????? visit this site.

    http://www.javaclass.info/classes/java-array/array-examples-demonstration-and-code-snippets.php

    ReplyDelete