0) System.ou" name="description">
 
 


durgaprasad
java program using control statements...
0 Answer(s)      2 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?

Advertisement
View Answers









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
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
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 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 is the difference between an if statement and a switch statement
Java statements
Java statements  What if there is a break or return statement in try block followed by finally 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
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
RARP program using java
RARP program using java   hai, how to implement the RARP concept using java
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
Avoiding â??!= nullâ?? statements in Java?
Avoiding ‚??!= null‚?? statements in Java?  Avoiding ‚??!= null‚?? statements in Java
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
java conrolling statements - Java Beginners
java conrolling statements  write a Java program to accept 10 integers and print the sum of numbers divisible by 5
Executing Set of SQL statements in Java
Executing Set of SQL statements in Java  Hi, I am trying to execute... the driver with ther server name, database name and uid/pwd using a callable...= cstmt.executeQuery(); The procedure has drop temp table statements, select multiple
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
Java if else
Java if else       The if-else statement is one of the widely used control flow statements while programming. It lets the program execute a set of statements enclosed within the "
Statements in JDBC - Java Interview Questions
Statements in JDBC  Hi, Explain statement, preparedstatement, callable statement. which is best and why. when to use preparedstatement. plz dont give link . explain ur words with example
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
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
JDBC: Insert Record using Prepared Statements
JDBC: Insert Record using Prepared Statements In this section, you will learn how to insert row using Prepared Statements. Insert Record  ... times for different values. It is precompiled SQL Statements which are stored
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
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