0) System.ou" name="description">
Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

java program using control statements...

Ads

 
 

Share on Google+Share on Google+

durgaprasad
java program using control statements...
0 Answer(s)      4 years and 3 months ago
Posted in : Java Beginners

public class ControlStatements {
public static void main(String args[]){ int x=10;
if(x==0){
System.out.println("It is zero");
else if(x>0)
System.out.println("it is positive number");
else if(x<0)

System.out.println("It is negative number");

}}}

in this program what and where it is error and why?

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
java program using control statements...
java program using control statements...  public class ControlStatements { public static void main(String args[]){ int x=10; if(x==0...("It is negative number"); }}} in this program what and where it is error and why
Control Flow Statements in java 7
Control Flow Statements in java 7 In this section we will discuss Control Flow Statements in java 7. This is one type of Language Fundamentals. Control.... So control flow statements break the flow of program and flow under some
Advertisements
Java Control Statements
Java Control Statements       Introduction to Control Statements In this section, we are going... use Jumping Statements in Java. Using for, while and do-while loops
Java Control Statements
Java Control Statements     ... and the conditional logic. Java contains the following types of control statements... the control statements. Different types of control statements: the decision making
loop, control statements
loop, control statements  a java program to print
How to access the "Add/Remove Programs" list in Control Panel using Java Program? - Java Beginners
How to access the "Add/Remove Programs" list in Control Panel using Java Program?  Dear Sir, I'm very interested in creating java programs innovatively. I've planned to write a java coding for accessing the Add/Remove
Decision-making Statements in java 7
Decision-making Statements in java 7 In this section, we will discuss about Decision-making Statements in java 7. This is one type of control flow statement... to control the flow of program. Like if-else statements, switch statement holds
A Java Program by using JSP
A Java Program by using JSP  how to draw lines by using JSP plz show me the solution by using program
Branching Statements in java 7
Branching Statements in java 7 In this section, we will discuss about Branching Statements in java 7. This is one type of control flow statement. Branching Statements : Branching statements are categorize in the following types
RARP program using java
RARP program using java   hai, how to implement the RARP concept using java
Looping Statements in java 7
Looping Statements in java 7 In this section, we will discuss about Looping Statements in java 7. This is one type of control flow statement. Looping Statements : This kind of statements are used where you need to execute block
Java Control Statement
Java Control Statement Control flow statement is a statement that is used... the order of execution of the program based on the condition. Control flow... statement :  Java supports two selection statements, if and switch
java statements
java statements  What is the difference between an if statement and a switch statement
Java statements
Java statements  What is the difference between a break statement and a continue statement
Java statements
Java statements   What is the difference between a break statement and a continue statement
Java statements
Java statements  What if there is a break or return statement in try block followed by finally block
I want example of Control Statement in Java
of control statements in java with example? Thanks   Hi, Control statement in Java is used to control the flow of execution of program. Here is the Examples of Control Statement in Java: Java Control Statements Java Control
Java Program Qns using BlueJ
Java Program Qns using BlueJ  Write a program that accepts one...), showing the carry, the quotient and the remainder. The program should output... are 158 and 7, the program should output: 1 1 7) 1 5 8 0 2 2 R4 If the two
Java program using stateful session - Java Beginners
Java program using stateful session   Write a program using stateful session bean to add three numbers by accepting input from the user
Blocking a web site using java program
Blocking a web site using java program  How to block a url typed in browser using java program
PHP Control Statement
PHP Control Statement The PHP Conditional statements helps us to perform... to control the flow of the program according to the requirement of the program. In the current tutorial - we'll study two control statements: If..else
Execute the java program using one processor
Execute the java program using one processor   Write a program to print the number series 1, 2,3, 4√Ę‚?¨¬¶.100 using java programming language in dual core computer a) Execute the program using one processor b) Execute
want a program for date picker by using java swings
want a program for date picker by using java swings  to write a program for the date picker by using java swings.any one please help me by providing the code to this java date picker by using the java swings.previously a program
Computer forensic application development using JAVA program
Computer forensic application development using JAVA program  Write a computer forensic application program in Java for Recovering Deleted Files and Deleted Partitions
how to run a java program using run.exec()?
how to run a java program using run.exec()?  Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from.... can i expect a sample java program using run.exec(). Thanking you
Avoiding â??!= nullâ?? statements in Java?
Avoiding ‚??!= null‚?? statements in Java?  Avoiding ‚??!= null‚?? statements in Java
Hibernate Simple Program Using Java Application with Eclipse
Hibernate Simple Program Using Java Application with Eclipse  How to write Hibernate Simple Program Using Java Application with Eclipse? I wish to learn Hibernate using very popular Eclipse IDE. Share me the best tutorial link
Sending and receiving xml message using Java Program
Sending and receiving xml message using Java Program  Hi Friends, I want to send and receive xml files between two java programs using wire format... sample program to understand. Thanks in advance. Regards, Atul Patil
Sending and receiving xml message using Java Program
Sending and receiving xml message using Java Program  Hi Friends, I want to send and receive xml files between two java programs using wire format... sample program to understand. Thanks in advance. Regards, Lisha Ahuja
Create a java program using Java with LinkedLists
Create a java program using Java with LinkedLists  Assignment is -- Question For this part of the assignment, you will develop a Java application... provided [3 marks]. If a route was found, the program will output the names
piracy control - Java Beginners
piracy control  how can i make a program that can control piracy in java? piracy control program means that in which we can only run any text file, mp3 file but it cant be copy from there. can u please help me in making that its