Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Introduction to Java
For more information, please see full course syllabus of Introduction to Java
Introduction to Java Conditional Statements
Lecture Description
In this lesson, our instructor Tom Quayle goes through an introduction on conditional statements. He starts by discussing the if and if-else statements, then goes through nested if-else, the extended if and the switch statement.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
0 answers
Post by Ying Feng on January 30, 2017
Dear Professor,
How to solve the following problem:
// precondition: x>=0
public void mystery(int x)
{
if ((x/10)!=0)
{
mystery(x/10);
}
System.out.print(x%10);
}
Looking forward to your response.
best regards,
Eva