0) System.ou" name="description">
Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners java program using control statements...

Have Programming Question? Ask it here!
 
 
 


durgaprasad
java program using control statements...
0 Answer(s)      a year 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 Review: Control Flow
Java Review: Control Flow Java uses the dominant imperative control flow.... Structured Programming control flow primitives within a method: Sequence... statements depending on a condition (if and switch statements). Repetition
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
Summary - Statements
Java: Summary - Statements Each control statements is one logical statement, which often encloses a block of statements in curly braces {}. The examples...; Other Flow Control Statements Method Return return; //no value
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
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
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 "
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
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
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
plese tell me the control flow of this program
plese tell me the control flow of this program  public class starForTest { public static void main(String [] args) { for (int... k....? plese tell me the control flow
Expressions, Statements, and Blocks in java 7
In this section we will discuss expressions, Statements and Blocks in java 7. This is one type of Language Fundamentals
Program using String functions - Java Beginners
Program using String functions  Write a program to accept a sentence and find out how many times the word "the" occurs?  Hi Friend, Try the following code: import java.util.*; class CountSameWords
Create Listbox in JSP using AJAX control
listbox to select single elemnt using AJAX control . But i don't know anything...Create Listbox in JSP using AJAX control  Hi everyone!!! I want... language="java" import ="java.sql.*" %> <% String buffer="<select id
Summary - Control Flow
Java: Summary - Control Flow Each control statement is one logical statement, which often encloses a block of statements in curly braces... (testExpression); Other Flow Control Statements Method Return
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion
Connect a linux machine from linux using java program without password
Connect a linux machine from linux using java program without password  Connect a linux machine from linux using java program without password. Can anyone help me
Write a java program to display the season given the month using switch case
Write a java program to display the season given the month using switch case  Write a java program to display the season given the month using switch case
how to control program/thread 's access authority - Security
how to control program/thread 's access authority£Ņ  how to control program/thread 's access authority like program can't change I/O and change... information. http://www.roseindia.net/java
source code in java for a program using class - Java Beginners
source code in java for a program using class  Dear sir/madam i want source code in java for following program: WAP which creates a class accountthat stores customer name,account number and type of account.From this derive
 

 

 

DMCA.com