Home Tutorialhelp Comment The is a error in the code! i mean read it

 
 

Comment

Gunaranjan
The is a error in the code! i mean read it,
December 17, 2007 at 9:15 AM

hay as the program is meant for printing the
no.of. time a star according to the user input
in the loop u got to put equals only then it
give such output otherwise it gives u wrong
for
eg:
if user input is 5 then 4 star prints
so the loop should be (for int i=0;i<=a;i++)
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

error in java code - Java Beginners
error in java code  Hi Can u say how to communication between... page and the applet may read the returned data and the state of the applet may.../java/network/index.shtml Thanks 

Java Beginners

what is mean by setValidating() - Java Beginners
what is mean by setValidating()  what is mean by setValidating 

Java Beginners

Code for a triangle.....
Code for a triangle.....   1 1 5 1 1 5 25 5 1 What is the source Code for above output 

Java Beginners

Error handling - Java Beginners
Error handling  Hello, Help me write code as instructed bellow for a Java program. 1. Create a new Movie class which has two properties, title... cinema.showMovie. Now, if you were careful your code may have executed without exception 

Java Beginners

Java Error - Java Beginners
Java Error  Here Error near Read Method import java.util.*; import java.io.*; public class inputdemo { public static void main(String[] args) throws IOException { String bookname,author; float price; System.out.println 

Java Beginners

code problem - Java Beginners
code problem  Dear sir, my problem is given below: suppose a file...; Hi friend, Code to help in solving the problem : import java.io....(in)); String strLine; //Read File Line By Line int count=1; while ((strLine 

Development process Questions

Triangle pgm
Triangle pgm  how to write code fa this??? 1 222 33333 4444444 55555555 666666666 

General

Java error cannot read
Java error cannot read       The Java error cannot read occurred when a programmer do... a method .get Year ( ).On execution the code show you an error Java Error cannot 

Java Beginners

error - Java Beginners
Java error handling  How to write a code to handle the errors in Java?  hi all,visit these site mentioned belowhttp://www.ugrad.cs.ubc.ca/~cs211/tutorials/Eclipse/Eclipse_Java_Windows_XP.htmlit will work 

Java-Tutorials

Java read text file
to read file in java How to Read file line by line in Java program Java read file line by line - Java Tutorial Java Read File Line by Line - Java Tutorial Java Programming video tutorial 

Java Beginners

What do you mean by platform independence?
/java-features.shtml   Hi, Platform indipendance mean a program shoud run with any processor without changing the code. In java, the compilation code(.class) is system indipendence. it mean it is same in every operating system 

Java Beginners

Java Error - Java Beginners
Java Error  import java.io.*; import java.lang.*; public class Wrapperdemo { float prin; float rate; int no; float interest; Wrapperdemo... code: import java.io.*; import java.lang.*; public class Wrapperdemo 

SQL Question

What do you mean by Read Uncommitted?
What do you mean by Read Uncommitted?  What do you mean by Read Uncommitted?   Hi, This situation occurs when transactions read data.... A transaction using the Read Uncommitted isolation level can not lock other transactions 

SQL Question

What do you mean by Repeatable Read?
What do you mean by Repeatable Read?  What do you mean by Repeatable Read?   Hi, The Repeatable Read isolation level allows a transaction to acquire read locks on all rows of data it returns to an application 

SQL Question

What do you mean by Read Committed?
What do you mean by Read Committed?  What do you mean by Read... when it commits. The Read Committed isolation level allows a transaction to acquire a read lock (if it only reads the data) or a write lock (if it updates 

Java Beginners

runtime error - Java Beginners
runtime error  sir run time error is coming again in this code also null pointer Exception at for( File f:contents) import java.io.*; public class RecentDocumentsDelete { public static void main(String[] args) { String 

Java Beginners

compilation error - Java Beginners
not in the Hexadecimal or Octal. Here is fraction of Java code example which will help you... this program it is giving an error as integer number is too large.why? and what is the reason?  Hi Friend, In Java there are some specific literal 

Java Beginners

read xml using java
read xml using java  <p>to read multiple attributes... element to b printed... here is the xml code......................</p> <...; </component> - <component name="ER" longname="Error_Manager 

Java Beginners

Error - Java Beginners
Error   import java.util.*; import java.io.*; public class inputdemo { public static void main(String[] args) throws IOException... Friend, Try the following code: import java.util.*; import java.io. 

General

Java error class
we want to describe you a code that help you in understanding Java error code... Java error class       Java error class  is  subclass of throw 

Java Beginners

runtime error - Java Beginners
); } } }   Hi Friend, Try the following code: import java.io....); } } } Thanks  Hi Friend, Try the following code: import java.io. 

Java Beginners

error - Java Beginners
code. import java.awt.*; import javax.swing.*; import java.awt.event. 

Java Beginners

Programming error - Java Beginners
is the function.js code functions.js function CheckEmail(email) { var 

Java Beginners

complilation error - Java Beginners
the following code: import java.awt.*; import javax.swing.*; import 

Java Beginners

java compilation error - Java Beginners
java compilation error  Hello, I'm having problems with trying to correct 2 compiler errors. The code I'm having trouble with is listed below. It's flagging two errors for this one code. The first error says identifier 

Java Beginners

java compilation error - Java Beginners
java compilation error   1)java code: import java.awt.*; import...(multBut); } } ****** its code is being compiled . But the command java... to run a program.Just compile the java file and use the html code to call the class 

Java Beginners

compilation error in java - Java Beginners
. For removing the error you have to use the String type in place of char & your code...compilation error in java  Here is the pgm usinf if-else statement... the following code: class grade { public static void main(String [ ] args 

Java Beginners

Java Compilation Error - Java Beginners
Java Compilation Error   Actually Iam having a packaging. Whatever... imported packages. What ever error iam getting is at the array usage. So, guide me regarding that.  Hi friend, We check your code having some 

Java Beginners

java Method Error - Java Beginners
java Method Error  class mathoperation { static int add(int... Errors ,Please Give Me solution of Following Error G:\>javac mathdemo.java... have got those errors. Your code: class mathoperation { static int add 

Java Beginners

Java Code - Java Beginners
Java Code  Write Java Program to create a JFrame having JPanel on it that display an on JPanel Image.  Hi Friend, Try the following code...); } catch (IOException ie) { System.out.println("Error:"+ie.getMessage 

Java Beginners

Java code - Java Beginners
Java code  Can you tell me the difference between volatile... friend, The transient is a keyword defined in the java programming language... to a compiler in java programming language likewise the transient keyword indicates 

Java Beginners

XML DOM error - Java Beginners
) but im getting a error like this... "java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/html4/strict.dtd" im using... this code works fine.It seems that your code could not find the file that you have 

Java Beginners

Code Fragment - Java Beginners
Code Fragment  Employee e - new manager(); e.gtPay(); Is this fragment legal? If so will it run or give a runtime error? Thanks taylordk@nationwide.com 

Java Beginners

Code Fragment - Java Beginners
Code Fragment  Employee e - new manager(); e.gtPay(); Is this fragment legal? If so will it run or give a runtime error? Thanks taylordk@nationwide.com 

Java Beginners

How to read data from txt file and save to database MySql - Java Beginners
this. Thank's very much   Hi friend, code to read a file import...How to read data from txt file and save to database MySql  Please help me again ,my problem right know is how to read data from txt file then data 

Java Beginners

Java Code Color Function Error
Java Code Color Function Error  Java Code Color Function Error 

Java Beginners

php image error - Java Beginners
php image error  Hi, Please, give me a example php code for png to jpg image conversion. thank u in advance. regards, sakthi.s 

Java Beginners

computation code - Java Beginners
computation code  "Helo man&sir can you share or gave me a java code... want to use. core java jsp servlet ------------------------------------- Read for more information. http://www.roseindia.net/java/ Thanks 

Java Beginners

java source code - Java Beginners
java source code  write a program to read the value of n as total number of friend relatives to whom the person wants to call 

Java-Tutorials

How To Read File In Java with BufferedReader
How To Read File In Java with BufferedReader class - example code This tutorial shows you how you can read file using BufferedReader class in your program... java.io.*; /** * How To Read File In Java with BufferedReader class 

Java Beginners

read an image in java
read an image in java  qns: how we can read an image tell me about its code 

Java Beginners

generate java code and html code - Java Beginners
generate java code and html code  create a web application for museum....a)the first page wil be a login page for administrators.. passwords for all... then a suitable error message is to be displayed. b)administators should 

Java Beginners

programming error - Java Beginners
://www.roseindia.net/java/jdk6/LinkedListExample.shtml http://www.roseindia.net/java/beginners/linked-list-demo.shtml Hope that the above links will be helpful for you 

HTML Questions

triangle
triangle  how to draw triangle numbers with stars in html with the help of javascript 

Java Beginners

how to perform a equqlity triangle in java
how to perform a equqlity triangle in java  below the output 1 2 3 4 6 5 7 9 10 8 

General

Java error code
Java error code       Java Error code are the set of error that occurs during the compile-time and Run-time. From java error we have given  you a sample of code 

Java Beginners

read excel file from Java - Java Beginners
read excel file from Java  How we read excel file data with the help of java?  Hi friend, For read more information on Java POI visit to : http://www.roseindia.net/java/poi/ Thanks 

JDBC Questions

Snippet Code Error
Snippet Code Error  The following is a snippet of code from a Java application which uses Connector/J to query a MySQL database. Identify possible problems and possible solutions. Connection cn= DriverManager.getConnection 

Java Beginners

Error with PrintDocument - Java Beginners
Error with PrintDocument  Error: StudRec.java:526: printComponent(java.awt.Component) in PrintableDocument cannot be applied.... Note: Recompile with -Xlint:unchecked for details. 1 error 

Java Beginners

Error - Java Beginners
Error  How to rectify requested resource()not found . HTTp-404 error 

Java Beginners

triangle
the sides of a triangle If they can form a triangle, determine and print if they can also form the sides of a right-angle triangle The class should include proper data 

SQL Question

What do you mean by Serialized?
What do you mean by Serialized?  What do you mean by Serialized?   Hi, It is the part of the isolation level , Its bassically use for the Data read by the current transaction cannot be changed by another transaction 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  Method overridden problems in compile time error 

Java Beginners

read adobe illustrator file - Java Beginners
read adobe illustrator file  Hi all, Could anybody tell me how we can read adobe illustrator(.AI) file in java. Please send me some examples. Thanks, Subodh Kumar Singh 

Java-Tutorials

Java Read File Line By Line, Video Tutorial of Java Read File Line By Line
code to read a text file in Java line by line. Steps to create a test... for "Java Read file line by line". Code explained here is good enough...Video Tutorial and example for the most searched topic "Java Read File 

Java Beginners

how to difficulty in removing error - Java Beginners
DataInputSTream(System.in); int p=0; //loop variables to read cell value... to read cell value in array File abc1=new File("Report.dat"); FileReader fr=new... to read cell value in the program File abc2=new File("Report.dat"); FileReader fr1 

Java Beginners

complete the code (palindrome) - Java Beginners
complete the code (palindrome)  Write a program that checks if a word... palindromes because you can read them either ways from left to right and from right.... complete the below code (step 3 and step 4 are not solved). import 

Java Beginners

A Program To Print A Equilateral Triangle
A Program To Print A Equilateral Triangle  Write A program to Print Following In Java : 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

Java Beginners

: Java Compilation error. - Java Beginners
: Java Compilation error.  what is the difference between static... on java visit to : http://www.roseindia.net/java/beginners/ http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml Thanks   static 

Java Beginners

Servlet error - Java Beginners
Servlet error  Can't we place the java files instead of class files... to compile the java files separately and then place the class files in classes folder..??  Hi Friend, You can simply save your java file in classes 

Java Beginners

programming error - Java Beginners
programming error  What is error in this page and how to use RequestDispatcher in servlet to validate it please do reply?? import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; import 

Java Beginners

Error and Exception in Java - Java Beginners
Error and Exception in Java  Hi, What is the base class for Error... of Error and exception Error dont have any base class. RuntimeException... _____|_________________ | | Error Exception 

Java Beginners

script error - Java Beginners
 

JSP Servlet Questions

error got minus one from read call - JSP-Servlet
error got minus one from read call  hiiii while connecting my servlet to database im getting error called java.sql.SQLException: Io exception: Got minus one from a read call oracle.jdbc.dbaccess.DBError.throwSqlException 

Java Beginners

jav compolation error - Java Beginners
jav compolation error  find symbol error 

Java Beginners

please help me to give code - Java Beginners
(); } } } ------------------------------- read for more information, http://www.roseindia.net/java/beginners/read 

Java Beginners

java compilation error - Java Beginners
java compilation error  how to set path and class path for java.. why... of the user defined classes and the packages in a Java program for the Java Virtual Machine. Setting the class path is mandatory to run a java application. Please 

Java Beginners

Java Code - Java Beginners
Java Code  Code the declaration for an array of ints named counts 

Java Beginners

java code - Java Beginners
java code  can u please post java code for zoom in and zoom out an bufferedImage class image 

Java Beginners

java code - Java Beginners
java code  how to check the locks on files on solaris server?can you please provide java code 

Java-Tutorials

Java read file line by line - Java Tutorial
C:\nisha>javac ReadFile.java C:\nisha>java...   System.err.println("Error: " + e.getMessage...:\nisha>java FileRead this is a file C 

Java Beginners

java code - Java Beginners
java code  can u plz provide source code for the mini project of "online course portal for a campus 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that assigns the value ?Star Wars? to the first element of an array of strings named titles 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that assigns the value ?Star Wars? to the first element of an array of strings named titles 

Java Beginners

installation error
installation error  Error : Invalid path, "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -g -classpath "C:\Documents and Settings\Admin\My Documents...\Admin\My Documents\news.java" what does this mean 

Java Beginners

installation error
installation error  Error : Invalid path, "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -g -classpath "C:\Documents and Settings\Admin\My Documents...\Admin\My Documents\news.java" what does this mean 

JDBC Questions

Error in MySQL Procedure Using JAVA Code
Error in MySQL Procedure Using JAVA Code  The following Java code (using Connector/J to create a stored procedure on MySQL 5.0) does not execute successfully. Identify the cause and available solutions. statement.execute 

Java Beginners

Read content for JPEG image File in Java - Java Beginners
Read content for JPEG image File in Java  How to Read content for JPEG image File in Java? or Extract text from JPEG image File in Java 

Java Beginners

Java Compilation error - Java Beginners
Java Compilation error  What's wrong with this: public enum RockPaperScissors { ROCK ("Rock crushes scissors."), PAPER ("Paper covers...; } } /*error starts here-->*/public static boolean validSelection(char 

Java-Tutorials

How to Read a File in Java
How to Read a File in Java? In this section we are going to know, How to read a file in Java. We have to follow three step to read a File. First get... can be very inefficient. Example Here is the program to read a file in Java 

Java Beginners

Java code - Java Beginners
Java code   Write a Java Program using Swings that displays image on JPanel on JFrame and apply various effects to that image Like Fading,Moving,Cutting 

Java Beginners

java compilation error - Java Beginners
java compilation error  can not find symbol sysbol:method println(int,int,int) location: class java.io.PrintStream) System.out.println(+a,+b,+c);  Hi friend, Please, specify in detail what's your problem 

Java Beginners

write simple java code - Java Beginners
write simple java code  Write a program that creates a simple... the following code: import java.awt.*; import javax.swing.*; import...{ JOptionPane.showMessageDialog(null, "Please enter only numbers", "Error 

Java Beginners

Java Code - Java Beginners
Java Code  Write a Java Program that display an Image and Apply... the following links: http://www.roseindia.net/java/example/java/swing/graphics2D/image-effect.shtml http://www.roseindia.net/java/example/java/swing/graphics2D/other 

Java Beginners

code - Java Beginners
Java code conventions eclipse  What are the java code conventions for eclipse 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array of doubles named mileages, code a statement that uses the fill method of the Arrays class to assign the value 25.0 to the first 6 elements of the array 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array of strings named ratings, code a statement that uses the fill method of the Arrays class to assign the value ?Not rated? to each element of the array 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that assigns a Customer object to the third element of an array of Customer objects named customers. Assume that the Customer class contains a constructor that assigns default values to all 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array of strings named ratings, code a statement that uses the fill method of the Arrays class to assign the value ?Not rated? to each element of the array 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array of doubles named mileages, code a statement that uses the fill method of the Arrays class to assign the value 25.0 to the first 6 elements of the array 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array named monthSales with 12 double values, code an enhanced for loop that calculates the total of all the sales and stores it in a variable named yearSales 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that assigns a Customer object to the third element of an array of Customer objects named customers. Assume that the Customer class contains a constructor that assigns default values to all 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that assigns a Customer object to the third element of an array of Customer objects named customers. Assume that the Customer class contains a constructor that assigns default values to all 

Java Beginners

Java Code - Java Beginners
Java Code  Code a statement that creates an array of doubles named miles and assigns the values 27.2, 33.5, 12.8, and 56.4 to its elements.  Double miles = new Double{27.2,33.5,56.4 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array named monthSales with 12 double values, code an enhanced for loop that calculates the total of all the sales and stores it in a variable named yearSales 

Java Beginners

Java Code - Java Beginners
Java Code  Given a one-dimensional array named monthSales with 12 double values, code a for loop that calculates the total of all the sales and stores it in a variable named yearSales 

Java Beginners

Java code - Java Beginners
Java code  A Java program that find out the age of person from accessing the current system Date 

Java Beginners

java code - Java Beginners
java code  when will go for abstract and when will go for interface..., Please visit the following links: http://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/java/master-java/interface.shtml 

Java Beginners

java code - Java Beginners
java code  how can we convert an RGB image into its grayscale representation?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/color-effect-image.shtml The code, you 

Java Beginners

Java Code - Java Beginners
Java Code  What is the relationship between equals() method & hashCode 

Advertisements Advertisements
 

 

 

DMCA.com