Java Sentinal Value in a While Loop - Easy Java Programming Tutorial - Appficial

Publié le: 06 octobre 2017
sur la chaîne: Appficial
14,237
172

Sometimes the end point of input data is not known. A sentinel value can be used to notify the program to stop acquiring input. If the input is from a user, the user could enter a specific value to stop collecting data for a running total. For example –1, where normal input is a positive number
Programs that get file input typically use the end-of-file marker (EOF) to stop acquiring input data.

Please SUBSCRIBE to Appficial, and check out more Java Programming Tutorials! http://www.appficial.com

Increment and Decrement Operators
   • Video  

The While Loop
   • Java While Loop by Example - Java Programm...  

Infinite Loops
   • Java Infinite Loop by Example in a While L...  

Do-While Loop
   • Java Do While Loop  - Easy Java Tutorials ...  

Do-While Loop Example Where User Prompts to Start Program Over
   • Java Do While Loop Example Where User Prom...  

For Loop
   • Java For Loop - How to Use the For Loop by...  

Nested Loop
   • Java Nested Loops by Example using a For L...  

How to Determine Which Loop to Use?
   • Deciding which Java Loop Structure to Use?...  

Sentinal Value
   • Java Sentinal Value in a While Loop - Easy...  

Input Validation using Loops
   • Java Input Validation with a While Loop AP...  

Break and Continue Statements in a Looping Structure
   • Java Break and Continue Statements in a Wh...  

Enumerations
   • Java Enumerations - The Enum Type for an E...  


Sur cette page du site, vous pouvez voir la vidéo en ligne Java Sentinal Value in a While Loop - Easy Java Programming Tutorial - Appficial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Appficial 06 octobre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 14,237 fois et il a aimé 172 téléspectateurs. Bon visionnage!