1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

java definition questions.

Discussion in 'Software Development' started by tenniskev18, Nov 10, 2007.

Thread Status:
Not open for further replies.
  1. tenniskev18

    tenniskev18 Thread Starter

    Joined:
    May 11, 2007
    Messages:
    18
    Hey I have a java test monday and I must of had a brain fart or some day dream during class but what is:

    Prime or primeing a loop

    and

    Which of these are determinate or nondeterminate?
    While loop
    Do loop
    For loop

    Thanks:D
     
  2. Chicon

    Chicon

    Joined:
    Jul 29, 2004
    Messages:
    6,650
    The questions are not specific to Java language.
    Example of priming a loop :

    String answer = "YES"; // here's the priming of the loop
    while (answer.equals("YES")) {
    ...
    ...
    answer = "NO";
    ...
    ...
    }


    Determinate : the loop has a counter or another iterator
    Example :

    while (i<10) {
    ...
    i++;
    ...
    }


    Undeterminate : the loop has no counter
    Example :

    while (isNotFound) {
    ...
    }
     
  3. tenniskev18

    tenniskev18 Thread Starter

    Joined:
    May 11, 2007
    Messages:
    18
    Gracias! :D
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/650338

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice