Java Programming Flow Charts_2.docx

  • Uploaded by: Aphroditety Z
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Java Programming Flow Charts_2.docx as PDF for free.

More details

  • Words: 75
  • Pages: 2
Java programming flow charts Four types of control statements Conditional statements

a) if statement b) nested if statement c) if-else statement d) if-else-if statement

1. If statement

Page 1 of 2

Sample: public class IfStatementExample { public static void main(String args[]){ int num=70; if( num < 100 ){ /* This println statement will only execute, * if the above condition is true */ System.out.println("number is less than 100"); } } }

Page 2 of 2

Related Documents


More Documents from "Aphroditety Z"