Comment

suneth
Nice,
February 7, 2009 at 12:01 AM

this is a nice page..be cause it helps us to learn alone.thank you...
View All Comments | View Tutorial
Related Tutorial and Articles
Java-Tutorials

The while and do
While and do-while      ...-while statement now. Here is the syntax: do { statement(s) } while (expression); Lets tweak an example of do-while loop 

Programming Tutorials

While and do-while
While and do-while       Nested classes Here is another advantage of the Java, object.... It increases encapsulation. To reduce the creation of .java files. Nested 

Java Tips and Examples

do-while Loop in Java
do-while Loop in Java      ... and processes once at least. For that you have to use the do while loop in  after that check the condition then we use the do-while loop statement. do-while loop 

Java Tips and Examples

While and do-while
While and do-while      ... at do-while statement now. Here is the syntax: do { statement(s) } while (expression); Lets tweak an example of do-while loop 

General

do while loop
do while loop       In java a do while loop is a control flow statement that allows a certain code... with a condition associated with the while keyword. The code inside the do construct 

General

Master Java In A Week
Master Java In A Week      ... in addition to variables in Java statement. While writing a source code...;     while and do-while   

Programming Tutorials

Master java in a week
;    Class Declaration: Class is the building block in Java...; The main method is the entry point in the Java program and java program can't run... is always first thing that is executed in a java program. Here is the main method 

Java Beginners

Use if, if else,for,while,do wile ad switch in same Java Class
Use if, if else,for,while,do wile ad switch in same Java Class  hi how to use if, if else,for,while,do wile ad switch in same class? very urgent... "); System.out.println("5. Exit"); boolean quit = false; do{ System.out.print("Please 

General

Java Break while example
Java Break while example     ... be used for terminating other loops as well such as while, do while etc. . Break... label mass.           Break While Loop Java 

Java Beginners

Java while coding - Java Beginners
Java while coding  Java loop and function coding question? How can I... * 19; I'd to use a method (function) to do the computation I'd like... boolexit=true; do { BufferedReader br = new BufferedReader(new 

Java Beginners

while and do while
while and do while  hello, What is the difference between a while statement and a do statement?   hello, A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do 

WebSevices Questions

Internet and Web related questions for Web Master.
Internet and Web related questions for Web Master.   Explain the difference between the Internet and Web. What are Web browsers? Explain the two main... is Java? What are the applications of Java that you can use for Web designing 

General

Change Background of Master Slide Using Java
Change Background of Master Slide Using Java  ... to create a slide then change background of the master slide. In this example we are creating a slide master for the slide show. To create slide show we 

General

Iterator Java While
The Java While loop Iterator is the top tested loop. It is in two forms while(), do while() While loop is mostly used with Iterator compared to for loop Java While Loop Iterator Example import java.util.ArrayList; import 

General

Java error reached end of file while parsing
Java error reached end of file while parsing... of file while parsing  occurred when a programmer do not close the class ... an error i.e java error reached end of file while parsing as the class closing braces 

Java Beginners

how to do combinations in java - Java Beginners
how to do combinations in java  i have 2 arrayLists. i want do... = ""; while(itr.hasNext()) { aObj = a.get(0).toString...()); } } } For more information on Java.util Package visit to : http://www.roseindia.net/java 

PHP Questions

php do while syntax
php do while syntax  How to create a do while loop in php. What is the syntax 

PHP Questions

php do while example
php do while example  Simple example of do while loop in PHP 

PHP Questions

php do while loop
php do while loop  Difference between do while loop and simple loop in PHP 

PHP Questions

php do while break
php do while break   receiving a Fatal saying cannot break/continue.. please suggest. Thank U 

PHP Questions

php do while false
php do while false   Is there any difference between FALSE and false 

PHP Tutorial

while & do..while Loop
while & do..while Loop while loop The while loop iterate until provided... : Value of j 1Value of j 2Value of j 3 The do...while statement The do-while... : do   {   code to be executed;   } while (condition 

Java Beginners

do-while loop
do-while loop  how many times will the following loop get executed and what will be the final value of the variable I after execution the loop is over. int I = 5; do{ I + = 3; System.out.println(""+I); I=I+1; }while(I>=9 

Java Beginners

while executing a java program
while executing a java program  while iam executing a simple java program after i type "java simple.java" there was a an error occuring.the error is "exception in thread "main" java.lang.noclassdeffounderror:simple" what thus 

JSP Servlet Questions

How do I change the while loop in this code to the range with range list style display page for a resultSet() in jsp?
How do I change the while loop in this code to the range with range list style... <%@ page language="java" import="java.sql.*" %> <html> <head>...); while (rs.next()) { rows =rs.getInt(1); %> < 

Java Beginners

how to do an measure converter in netbeans - Java Beginners
how to do an measure converter in netbeans   hi im not sure... be nice to see it using joptionpane  Hi friend, For more information on joptionpane visit to : http://www.roseindia.net/java/java-tips/GUI 

Java Beginners

While loop - Java Beginners
While loop  Given a number, write a program using while loop...(br.readLine()); int n=num; int rem=0; int rev=0; while(n!=0...; } System.out.println("Reverse Number : " + rev); } } For more information on Java 

Java Beginners

programes on do... while
programes on do... while   write a program to print reverse of a given digit write a program to check whether entered digit is palindrome... = num; //use to check at last time int check=0,remainder; while(num > 0 

Java Beginners

How to do Null validation for a boolean variable - Java Beginners
How to do Null validation for a boolean variable  How to do Null validation for a boolean variable in JAVA?  Hi friend, For solving the problem visit to : http://www.roseindia.net/java/master-java/variables 

Java-Tutorials

Do-while loop Statement in java 7
 

Java Beginners

Do needful - Java Beginners
Do needful  Hai how can I do the string to Hex in java. Pls help me  use conversion concept  Hi friend, import java.io.*; import java.io.IOException.*; public class StringToHexa{ public static void 

Java Beginners

Dont Do this - Java Beginners
Dont Do this  Whenever you guys ask a question please describe your query? Otherwise you lost your time and other who are given answer to you. thanks Rajanikant 

JDBC Questions

Class.forName will do while loading drivers
Class.forName will do while loading drivers  What Class.forName will do while loading drivers 

Core Java

while Java Keyword
while Java Keyword       The while is a keyword defined in the java programming language... to a compiler in java programming language likewise the while keyword indicates 

Core Java

The While keyword
The While keyword       While is a keyword defined in the java programming language. Keywords... : The while keyword in java programming language specifies a loop  The loop 

Java Beginners

how to do this?
how to do this?   Given any integer 2D array, design then implement a Java program that will add to each element in the array the corresponding column number and the corresponding row number. Then, it prints the array before 

General

The do Keyword
are reserved for a Java program. The do is a Java keyword, that may.... For example: do {   i++; } while ( i <... The do Keyword         

Java Beginners

error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME 

Java Server Faces Questions

HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO...(); while (Ite.hasNext...(); while (Ite.hasNext 

Java Server Faces Questions

HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO...(); while (Ite.hasNext...(); while (Ite.hasNext 

Java Server Faces Questions

HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO...(); while (Ite.hasNext...(); while (Ite.hasNext 

Java Server Faces Questions

HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO...(); while (Ite.hasNext...(); while (Ite.hasNext 

Java Beginners

Error While Compiling - Java Beginners
Error While Compiling  Hi All I Am a beginner and i face the following problem while compiling can anyone help me. C:\javatutorial\example> javac HelloWorld.java 'javac' is not recognized as an internal or external 

Java Beginners

While loop Statement.
While loop Statement.   How to Print Table In java using While Loop 

Java Tips and Examples

'while' Statement
Java Notes'while' Statement Purpose - to repeat statements The purpose of the while statement is to repeat a group of Java statements many times... the while keyword. General Form The while statement has this form 

Java Beginners

programes on while loop
programes on while loop   write a program to calculate sum of an entered digit write a program to find gcd and lcm of 2 positive integers   Java sum of digits Java Find LCM and GCD 

Programming Tutorials

PHP Do While Loop
Do-While Control Structure: Do-While loop is another type of loop which runs... within. We generally use Do-While loop  when the iteration must run at least once despite of the validity of the variable. In Do-While loop we need 

Java Tips and Examples

While Loop
While Loop       Loop.... Loop makes your program readable, flexible and reliable. While loop: While loop... the statements or processes written under the while loop are executed otherwise ignored 

Programming Tutorials

Loop in java
on the following link to know all about it. While Loop in Java Do-While Loop in Java For Loop in Java Break statement in java Continue statement in Java 

JSP Servlet Questions

How do i do the coding for 'leaving a comment' in java
How do i do the coding for 'leaving a comment' in java  i am designing a webpage.In my webpage i want to add the option of adding a comment by the readers of the page.how do i do 

Java Beginners

please do respond to my problem sooooon sir - Java Beginners
please do respond to my problem sooooon sir  Hello sir, Sir i have...); pb.setSelection(50); pb.setBounds(10, 10, 200, 20); s.open(); while... for more information. http://www.roseindia.net/java/ Thanks 

Java Beginners

How do I do this program? I'm new to Java programming...
How do I do this program? I'm new to Java programming...  Suppose you want to print out numbers in brackets, formatted as follows: [1] [2] [3] and so on. Write a method that takes two parameters: howMany and lineLength 

PHP Tutorial

Do..While Loops
3.10.2. Do…While Loops The do...while statement always execute... the condition is true. Syntax do { code to be executed; } while (condition); e.g.... reaches to either 5 or less than 5. <?php $i=1; do { $i++; echo &ldquo 

PHP Tutorial

PHP Do While Loop
Do-While Loop Function PHP: PHP Do-While loop method is another type of loop... the code within. We generally use Do-While loop  when the iteration must run at least once despite of the validity of the variable. In Do-While loop we need 

Java Beginners

While Loop with JOptionPane
While Loop with JOptionPane  Hello there, why the output only... exploring Java. import javax.swing.*; class JOPtionPaneExample... int k = 5; String name; int age; while(i < k 

JSP Servlet Questions

how to make enable/disable textbox in while(rs.next)
how to make enable/disable textbox in while(rs.next)  Hi, I'm trying to enable/disable the textbox in the while loop. It works but when i want.../disable function,the data are updated correctly. Is my javascript wrong? How do

JSP Servlet Questions

how to make enable/disable textbox in while(rs.next)
how to make enable/disable textbox in while(rs.next)  Hi, I'm trying to enable/disable the textbox in the while loop. It works but when i want.../disable function,the data are updated correctly. Is my javascript wrong? How do

Java-Tutorials

While Loop Statement in java 7
While Loop Statement in java 7 This tutorial, helps you to understand the concept of while loop  in java 7. While Loop Statements : While loop is most used loop in programming. We put the condition with in the while loop 

Java Beginners

Character count by while loop
Character count by while loop  Write the program to count the number of characters entered until a full stop (.)is keyed-in. Anyone there pls help...+" times "); } } } } For more information, visit the following link: Java 

General

Preferences API - What do you Prefer? - Java Tutorials
Preferences API - What do you Prefer? 2001-09-17 The Java Specialists' Newsletter [Issue 030] - What do you Prefer? Author: Herman Lintvelt (Polymorph... (South Africa) evening, while sitting in front of my fireplace with a nice warm 

Java Beginners

sir plz do respond to my problem immediately - Java Beginners
sir plz do respond to my problem immediately  Hello sir...(shell, location); shell.open(); while (!shell.isDisposed...); pb.setBounds(10, 10, 200, 20); s.open(); while (!s.isDisposed 

Java Server Faces Questions

java do wile - Java Server Faces Questions
java do wile  Write a program that asks the user to enter two words. The program then prints out both words on one line. The words will be separated by dots so that the total line length is 40. If your first word was turtle 

Hibernate Interview Questions

what is java and why do i need it?
what is java and why do i need it?  Hi, Please tell me what is Java and why do i need it? Is it free to download? Also explain me how to write and test my first Java Application? What is the configuration or system requirement 

Java Beginners

how do you parse by reference in java(with JGrasp)
how do you parse by reference in java(with JGrasp)  i am a 1st year beginner in java programming(GR 10) at hillcrest High School in south Africa My question is how do you parse by reference in java(with JGrasp) please help me i 

Java Server Faces Questions

errors while run - Java Server Faces Questions
errors while run  I,ve download the SimpleHelloByEnteringName jsf intoduntion sample project and tried to run this application following the steps narrated in roseindia jsf tutorial. But i found the fillowing error:(My 

Java Beginners

HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE  Hi , Greetings. I have created modules in java separately , example student registration , view... , student regis. modules is displayed and so on. What need to do to create 

Java Beginners

java
in other computers also which are connected through LAN.is it possible to do so??all the database must be in master computer only and all other computer must retrieve that data from the master computer only.please help 

Java Beginners

error while running the applet - Java Beginners
error while running the applet  import java.applet.Applet; import java.awt.*; import java.awt.event.*; class MyFrame extends Frame { boolean...); ++num; } } } } i have problem while running the code , error 

SQL Question

Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws Exeption { Connection con=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver 

SQL Question

Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws Exeption { Connection con=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver 

JDBC Questions

Exception while inserting image in oracle using java
Exception while inserting image in oracle using java  import java.sql.*; import java.io.*; class Oracle2 { public static void main(String args[])throws Exception { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver 

Java Beginners

what should i do next?? - Java Beginners
what should i do next??  I know java basics.actully i passed the SCJP exam.Then now i have no idea about what should i do next.I like to come... are in Hyderabad go for satya technologies for further java course(Servlets,jsp,EJB 

Java Beginners

how do i write a java program for this??
how do i write a java program for this??  â??Ask the user if they have a dog. If â??yesâ??, ask the user how old is and compute the dogâ??s age in human years. Display the output. If â??noâ?? ask the user their age and compute 

Java Interview Questions

do this for me plzz - Java Interview Questions
do this for me plzz  Given the no of days and start day of a month... to print in the same line i.e., without printing a newline. 2)You do...: http://www.roseindia.net/java/ Thanks. Amardeep 

JSP Servlet Questions

error of HTTP Status 404 while running servlet on apache tomcat server
error of HTTP Status 404 while running servlet on apache tomcat server ... and have set classpath properly. on typing "http://localhost:8080" i do get... here, the browser responds "HTTP Status 404 - /java_mail/hello" wht could 

Java Beginners

No matter what i do, eclipse applet WON'T PLAY SOUND - Java Beginners
No matter what i do, eclipse applet WON'T PLAY SOUND  OK, so I tried the code in http://www.roseindia.net/java/example/java/applet..., no matter what i do, I can't put sound in my applet, .au, .wav, nothing.... oh 

General

Java AWT Package Example
Java AWT Package Example       In this section you will learn about the AWT package of the Java. Many running examples are provided that will help you master AWT package. Example 

Hibernate Questions

How do you map Java Objects with Database tables?
How do you map Java Objects with Database tables?  Hi, How do you map Java Objects with Database tables? thanks 

Hibernate Interview Questions

Why do we use ORM?
Why do we use ORM?  Why do we use ORM?   ORM is technology to access the data from the database. With the help of ORM framework, business... define the mapping of which property for which column. In ORM we can use plain java 

Java Beginners

How do i create the node for target SMO in java..???
How do i create the node for target SMO in java..???  How do i create the node for target SMO in java..??? or else whats the method for accessing the target SMO 

JSP Servlet Questions

How do i start to create Download Manager in Java - JSP-Servlet
How do i start to create Download Manager in Java  Can you tell me from where do i start to develop Download manager in java 

Java Tips and Examples

Bubble Sorts
Java NotesBubble Sorts People like bubble sorts -- could it be the name? One nice aspect of bubble sorts is that they can quit early if the elements.... Java has better sort methods in java.util.Arrays.sort 

Java Interview Questions

Exception handling in super and subclass while implementing inheritance,,?
Exception handling in super and subclass while implementing inheritance,,?  How to implement Superclass Exceptions with SubClass while implementing Inheritance concept in core java.? Please answer for this with sample code 

Java Beginners

Java - Java Beginners
://www.roseindia.net/java/master-java/interface.shtml Regards Neelam...Use of Interfacecs in Java  What is the use of Interfaces in Java... that shares various resources but do not necessarily constitute a class relationship 

Java Beginners

java - Java Beginners
java  where do i declare an enum?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/master-java/enum.shtml Thanks 

JSP Tutorials

Finding a Factorial using while loop
Finding a Factorial using while loop   ... are going to find out the factorial of 12 by using the while loop. In while loop... a java logic in it. The output will be displayed by using the out implicit object 

General

Java Control Statements
use Jumping Statements in Java. Using for, while and do-while loops... statements (while, do-while and for) and branching statements (break, continue... in Java.    Loop Statements while 

Java Interview Questions

Java
and Servlets do not. 8)Servlet contains pure java code while JSP does.... 2)JSP pages contain a mixture of HTML, Java scripts, JSP elements, and JSP directives while servlet is totally uses java code. 3)Java Server Pages 

Java Beginners

While loop break causing unwanted output
While loop break causing unwanted output  Below I will paste my code... as I'm just beginning learning java. import java.util.Scanner; public class...);{ while(counter != answer){ numc = job.nextInt(); if(numc != answer 

Java Beginners

program that uses while loops to perform the following steps :
program that uses while loops to perform the following steps :  Write a program that uses while loops to perform the following steps : a. Prompt... inclusive f. Output all the uppercase letters. (java coding: pls help me 

Java Beginners

Err while reading CSV file using POI - Java Beginners
Err while reading CSV file using POI  Hi, When i am trying to read a CSV file using POI Dile system, the below error is coming up. java.io.IOException: Invalid header signature; read 2334956330951926093, expected 

Java Beginners

when do we get null pointer exception in java
when do we get null pointer exception in java  can anybody explain me abt null pointer exception? like in wt situation do v get NPE? Are these 2 strings same? String str; String str=null 

JavaScript Questions

How to prevent the page refresh while submitting the form??
How to prevent the page refresh while submitting the form??  Hi. Requirement: There are two drop down boxes.Dropdown2 should load corresponding... every time when changing Dropdown1. Is there any way in JAVA SCRIPT to prevent 

Java Beginners

Not getting desired output while button is pressed in java applet program
Not getting desired output while button is pressed in java applet program  //The code is as follows,i want that whatever data is there in text field T1 and T2 get subtracted and comes in T3 after we press the button.../// import 

Java Beginners

error while running a jsp page in netbeans
error while running a jsp page in netbeans  this is error that come under column "java db processes" in netbeans Exception in thread "main" java.lang.ExceptionInInitializerError 

Java Beginners

What do you mean by platform independence?
What do you mean by platform independence?   Hi, What do you mean... of java language that makes java as the most powerful language. Not even a single language is idle to this feature but java is more closer to this feature 

Java Beginners

Using java script do login form having fields with condition.
Using java script do login form having fields with condition.  Need a login form with username, password, phone no, email id, date fields. We should specify the conditions for each field and if we press the submit button 

JavaScript Questions

how to make use of jerry's java image processing filter in java application?is there anyway to do this?
how to make use of jerry's java image processing filter in java application?is there anyway to do this?   how to make use of jerry's java image processing filter in java application?is there anyway to do 

Java Beginners

java
java  hi im new to java plz suggest me how to master java....saifjunaid@gmail.com 

Development process Questions

do the combinations in java, pls help me its urhent - Development process
do the combinations in java, pls help me its urhent  import java.util.*; interface Expression { public void interpret(ArrayList exp); } class OrExpression implements Expression { public void interpret(ArrayList exp 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.