Home Answers Viewqa Java-Beginners what error in this program plese correct it

 
 


ajit kumar gupta
what error in this program plese correct it
1 Answer(s)      2 years and a month ago
Posted in : Java Beginners

import java.io.*; class y { public static void main (String args[]) { Data inputStream dis = new Data inputstream(System.in); float l,b,a; Systyem.out.println("enter the lengh"); l=float.parse float{dis.readLine()}; Systyem.out.println("enter the breath"); b=float.parse float(dis.readLine()); a=l*b; System.out.println("area of rect" +a); } }

View Answers

April 8, 2011 at 12:51 PM


import java.io.*;
class y {
    public static void main (String args[])throws Exception {
        DataInputStream dis = new DataInputStream(System.in); 
        float l,b,a; 
        System.out.println("enter the lengh"); 
        l=Float.parseFloat(dis.readLine());
        System.out.println("enter the breath");
        b=Float.parseFloat(dis.readLine());
        a=l*b; 
        System.out.println("area of rect: " +a); 
        } 
        }









Related Pages:
what error in this program plese correct it
what error in this program plese correct it  import java.io.*; class y { public static void main (String args[]) { Data inputStream dis = new Data inputstream(System.in); float l,b,a; Systyem.out.println("enter the lengh"); l
plese tell me the control flow of this program
plese tell me the control flow of this program  public class...(); } } in this i is row num and j is column num... and what about k....? plese tell me the control flow
plese help
plese help  i need a program to convert a decimal num into binary num in java language by using array and loop   Java Convert decimal to binary import java.util.*; public class DecimalToBinary{ public static void
what is the correct format of charAt() function?
what is the correct format of charAt() function?  class prog...=new prog(); obj.cal1(ar[0]); } } in the above program the following...()function is correct in the code
plese expalin the flow of this program
plese expalin the flow of this program  class Bticket extends Thread { Object train,comp; Bticket(Object train,Object comp){ this.train=train; this.comp=comp; } public void run(){ synchronized(train
what is the error - Java Beginners
();//System.out.println("Data : "+ data);}}if you want error free program the correct...what is the error  What is the compile time error that i am getting... this .correct code is this if you don?t want such type of error EG : - import java.lang.
correct the sql error
correct the sql error  i am getting a SQL Error while retriving data from access to jframe called "datatype mismatch in criteria expression" plez do...(null,"Please enter the Student ID to Search","Error",0); } else { try
please correct this program
please correct this program  import java.util.Scanner; public class Nam { public static void main (String arg[]) { String[] name={"Aki","Karthi","Tk","Suba","Malu","Buvi","Janu","Sara","Sandy","Abi","Ani","Amu
Is this correct???what are the unnessasary codings here??
Is this correct???what are the unnessasary codings here??  import java.util.Scanner; public class Length { public int meters; public int centiMeters; public double yards; public double feet; public double inches
plz Help me find the correct programs answers
plz Help me find the correct programs answers   Create a washing... and loading capacity. Display the updated truck details. Write a program which... to the program so as to accept any type of numeric values and returns the results
correct the sql error and retrive data....plez
correct the sql error and retrive data....plez  i am getting a SQL Error while retriving data from access to jframe called "datatype mismatch...("")) { JOptionPane.showMessageDialog(null,"Please enter the Student ID to Search","Error",0
i got illegal start of expression error , plese tell me the mistake where i did...
i got illegal start of expression error , plese tell me the mistake where i did...   import org.springframework.context.*; import java.util.*; public class MyListener implements ApplicationListener { public static void main
Correct errors - Java Beginners
Correct errors  Identify and correct the errors in the following program: public java Method { public static method1(int n, m) { n += m; xMethod(3. 4); } public static int xMethod(int n) { if (n > 0) return 1
Plz Provide correct program code for all questions.
Plz Provide correct program code for all questions.   Write a program... of n numbers? Develop a program that accepts the area of a square and will calculate its perimeter. Develop the program calculateCylinderVolume., which accepts
Produces XML file but format not correct for storing data using JSP and XML
Produces XML file but format not correct for storing data using JSP... program is : <%@page import="java.io.*,org.w3c.dom.*,javax.xml.parsers....;/body> </html> I am using Jdeveloper ,program runs correctly,forms
Error processing
to correct their problem. I recently used a program that produced "Error... Java: Error processing Error in user input or action If the user makes an error in input, give the appropriate feedback, and allow them to correct
compilation error - Java Beginners
compilation error  sir what is the error inthis code after...;i  Hi friend, Some points to be remember to run the Program : 1)Save the file "Group.java" in the c: drive . 2)For compile the program
Error in servlets
Error in servlets  I cant execute my servlet or jsp programs. Im getting an error resource not found. I am using tomcat 6.0. I have set the path and class path correctly. My code is also correct. I have done everything but i
plz check my codings are correct or not...There is an error..i cant find it..
plz check my codings are correct or not...There is an error..i cant find it..  import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
How to Solve the Syntax Error in java??
of the program "objectname.i" What is the reason for this error??How to access the variable...How to Solve the Syntax Error in java??  Syntax error in java? i have tried this program its showing error like this in Eclipse "Syntax error
what is the output?
what is the output?  public class MyAr{ public static void main...;It gives ArrayIndexOutOfBoundsException as you haven't add element to array. Correct Program is: public class MyAr{ public static void main(String argv
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
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
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
What is the error in this coding?
What is the error in this coding?  <% Class.forName("com.ibm.db2.jcc.DB2Driver"); System.out.println("driver loaded sucesssssssssssssssssss"); Connection Conn=DriverManager.getConnection("jdbc:db2://localhost:50000/VOTERS
java runtime error - Java Beginners
correct), then too it's displaying the error while running it through command prompt, what can be the possibility of getting the same error again and again...: Test. Program will exit. though the class is present in the same folder
what is the resolution for the bellow error?
what is the resolution for the bellow error?  pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException
compile error
program with Test.java and try to compile with javac test.java an error like..."); } } i have save this program with A.java. Then I executed this program javac A.java... as public,and why it compiled when class not declared as public. what's the actual
error
"+it); } } this is my program i am getting an error saying cannot find symbol class string
error
is"+sum); } } this is my program i need to print the series (1+2/12)+(1+2
output error
output error  this is my program import java.io.*; public class separate { public static void main(String[] args)throws IOException... is only "my" what is the error.my actual out put should be"my name
error - JDBC
error  i wrote the program using dbms type 4 driver.it is comipled...(Class.java:141) at DBConnect.main(DBConnect.java:13) and my program...(); } } } i wrote any jdbc program .it won't work in my system. but it is complied i
Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation.
Identify correct and incorrect statements or examples about...; Identify correct and incorrect statements or examples about the client's view... program receives an APPLICATION exception from an enterprise bean invocation
ERRor in executing DB program
ERRor in executing DB program  While executing following code an Error was generated.can any one help me for this. LiveDB liveDBObj...=pstmt.executeUpdate(qry); ---------- **ERROR:java.sql.SQLException: You have
Probblems with printing if my innput of text file is correct..
Probblems with printing if my innput of text file is correct..  I am trying to make sure this block of code does what I think it will do. Can someone show me with some code how I can print out what is is labled with <----print
PHP GD image gamma correct
running the program you will get the following output
why the program is showing error?
why the program is showing error?  <%@page import="java.sql.*"%>...; It is showing the error: An error occurred at line: 33 in the jsp file...=Integer.parseInt(rs1.getString(10)); 36: i=i+k; An error occurred at line
Program error - WebSevices
Program error  Hello, Any one know the sample program for Login page using zend framework. Then how i connect my databse file to zend framework. Anyone help me
Program error - WebSevices
Program error  Hello friends, Username Required Password Required.... In which library file i include the top of my program.... Any one help me
Program error - WebSevices
Program error  Dear all, How i insert checkbox values into my database without using array In PHP . Anyone know the code
error in program when trying to load image in java - Java Beginners
error in program when trying to load image in java  Hi, I'm trying... errors but my program still won't run. I keep getting this type of message and I don't know what it means. ProductInventoryVGUI Uncaught error fetching image
Program error - WebSevices
Program error  Dear all, How i insert checkbox values into my database without using array. Anyone know the code.   Hi friend, Code to help in solve the probelm : Insert CheckBox
what is wrong in this program......
what is wrong in this program......  program to implement given inheritance import java.io.*; class Student { int rno; String name; DataInputStream ob = new DataInputStream(System.in); void getRoll
what is wrong with this program
what is wrong with this program  import java.io.*; class Distance { int feet,inch; void read() { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine()); inch
Program Error - WebSevices
Program Error  Hello Friends, Write the simple php program Using Zend framework with Database connection .Anyone know the code .Help me   Hi friend, I am sending simple code of using Zend Framework

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.