Help for this error ^_^

Someone help please, i can;t get this correct ^_^
public class Circle{
public static void main(String args[]){
int radius = 2;
int diameter = 4;
float area;
area = 3.142*(radius*radius);
System.out.println("Radius = "+ radius);
System.out.println("Diamater = "+ diameter);
System.out.println("Area = " + area);
error i get
C:\javady>javac Circle.java
Circle.java:7: possible loss of precision
found : double
required: float
area = 3.142*(radius*radius);
______^ (Its point at 3)
1 error

Thank you and i done it ^_^ there is another one i can;t slove it. The selection for shoe type.
import java.io.*;
public class shoe{
public static void main (String args[]) throws IOException{
char shoe;
BufferedReader temp = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Choose type of shoe:");
String tempShoe = temp.readLine();
shoe = Character.parseChar(tempShoe);
String price = "";
if (shoe == 'S')
price = "RM100";
else
if (shoe == 'H')
price = "RM80";
else
if (shoe == 'B')
price = "RM50";
else
price = "Invalid";
System.out.println("The price for the shoe chosen is " + price);
error i get
C:\javady>javac shoe.java
shoe.java:9: cannot resolve symbol
symbol : method parseChar (java.lang.String)
location: class java.lang.Character
shoe = Character.parseChar(tempShoe);
_____________^ (its point at the dot)
1 error

Similar Messages

  • Help for this error  user.avf(44): Unbound variable 'w32rsf80'

    hi
    when i install devloper 6 then show me this error
    user.avf(44): Unbound variable 'w32rsf80'
    at stage three when give the installation location
    thanking you

    Hi,
    This error appears when trying to install from a shared area that uses the universal naming convention (UNC) format, e.g. \\machine2\dev60.
    The Oracle installer does not support UNC formats, therefore your share or staging area must be mapped to a drive letter.
    Nicolas.

  • Plz  need your help for this  error code :1 (FBAPIErrorDomain)

    After installed IOS7 i can not use Facebook application and i'm already remove the application and re install again but when i login found this message                Sorry , an unexpected error occurred please try again lare , error code :1 (FBAPIErrorDomain)

    Here is the solution. I like to play candy crush saga on my iPhone five. I cannot wait the allotted time frame to get extra lives. So what I have done is gone into the date and time settings of my phone and made the date in the future to speed up the process. All you have to do to fix this problem is to make the time and date on your phone or your iPad or your computer the correct time and date for today. The server certificates for most websites have expiration dates. How are machines are set up to revoke permission if you are trying to access the websites after the certificate expiration date. It's a real easy fix. Summary: make the time and date on your phone, computer, iPad today's date and current time, it should work after that.

  • Hp pavilion dv6 6180 help me for this error when I am using my recovery disk

    hp pavilion dv6 6180 help me for this error when I am using my recovery disk
    The destination drive is not connected

    Hello Mohammadshamlou.  I understand that you're having some issues using your Recovery Disc.  It is giving you the error that the drive is not connected.  Is this correct?  How long have you had the notebook?
    What issue originally led you to want to try a recovery?
    The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive.  So, I feel the best thing to try first is verify that the hard drive is in proper working order.  Follow these steps and please post the result. 
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • TS3694 I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this

    I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this on the apple site

    If the phone has been hacked, we can not offer advice on Apple's support site.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
    And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it.

  • IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error

    IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error,

    spacepilot wrote:
    i live in the WS10 / 0121 area and have been having similar problems. i have an up to 20mb services, but up to a month ago connected at 4800, then my line went dead for 6 days, and all indis could do was send me  new router, which came the day after my line was restored, but had dropped to 2418 and remained so for the past 3 to 4 weeks, then i dropped to 1963 yesterday, and 729 today.
    all speeds are far lower on my upto 20mb than they where on my upto 8mb link.
    foegot to add, i reported the problem via the report a problem link, which hopefully will be red by someone with  a firmer grasp of english that the normal call centre staff
    welcome to the forum    why don't you start your own subject and post the adsl stats from your router and also run btspeedtester and post the results and someone may be able to offer assistance
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Help! Can any tell me what cause / remedy is for this error

    Can any tell me what cause / remedy is for this error:
    [1/29/08 10:52:05:009 GMT] 4131a8 SystemOut
    U 2008-01-29 10:52:05,009 [QuartzWorkerThread-0] FATAL
    com.scheduler.service.businessservice.ReportExecution
    () 190470534 - ****** METHOD FAILED ******WebIntelligence SDK / JSP
    Exception --- Number :10480 --- javaError : WI Internal Error = 100
    --- Description : WI Error while trying to get HTML view for the
    document

    Afraid I haven't seen that before. The only thing I could suggest is to boot from the 1st Install disk and run the hardware test. I would wonder about the video card. You might also post in the MacPro forum. I just got MY MacPro today, and the MacPro Forum is where I would go:
    http://discussions.apple.com/category.jspa?categoryID=194
    The only other thing I can think of is to launch Console from the Utilities folder and see if any errors are being reported.
    Francine
    Francine
    Schwieder

  • Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a reso

    Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a resolution. Any help would be appreciated.
    Sorry for the long title, first time poster here.

    This thread is pretty old, are you still having this issue?

  • Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).

    Hello
    When I try to start the SQl server service i get the following error:
    Event id 17058
    Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).
    As a test I have made sure the errorlog file ,and the entire drive it is, has everyone full control permissions, but to no avail. Does anyone have any ideas to resolve this issue?
    Thank you

    Hi,
    Try running:
    SELECT SERVERPROPERTY('ErrorLogFileName')
    Then verify that the account being used to run the SQL Server service account has access to the path output above.  If possible, you could try logging onto the server with the same account used to run SQL Server then navigate to the errorlog folder.
    Thanks,
    Andrew Bainbridge
    SQL Server DBA
    Please click "Propose As Answer" if a post solves your problem, or "Vote As Helpful" if a post has been useful to you

  • ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR

    hi... experts....
        Iam having one screen in my previous module pool program....and now as per my requirement i added on e new field...
    for that...
      1. i declared one variable in top include...
      2. cretaed one more new block with help of box in layout screen..
      3. added some text field and inputput out field...
      4. and in that block i also added one line with test like... following...
    " NOTE: PLEASE ENTER THE ..... VALUE..."   Like this.... just for to give direction...
    so these are  the steps i taken to add new field to my screen... but here i am geting error ... while entering the value in that field and press any push button.... including back in that screen... like....
      "INVAILD FIELD FORMAT (SCREEN ERROR)"
    .... ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR... COMMONLY???
    THANK YOU,,,
    NAVEEN..

    hi naveen,
    there can be problem from ur layout side.
    Goto SE51. in Layout editor make sure that the type in screen and in TOP Include is same.
    and if you are using currency field than it can also give error to you.
    if still you any error .
    give me type of variable whcih you defined in TOP and also code.
    give reward if helpfull.

  • Please give me detailed explanation for this error

    dear all,
    i have created a procedue and used UTL_TCP utility.
    while executing this procedure always im getting this error.
    im very new to these utilities. pls help me in advance.
    error
    ORA-29261: bad argument
    ORA-06512: at "SYS.UTL_TCP", line 28
    ORA-06512: at "SYS.UTL_TCP", line 257
    ORA-06512: at "CCCL_29OCT07.O_DBEVENT_TRIGGER", line 231
    ORA-06512: at line 12
    thanks in advance

    Can we see what you actually did/tried to do?
    Also there are at least a couple of links for this error on Google, for example...
    Getting bad argumnet error when using UTL_MAIL.SEND_ATTACH_VARCHAR2
    http://asktom.oracle.com/pls/asktomf?p=100:11:0::::P11_QUESTION_ID:255615160805

  • Help for Fatal Error on publish?

    Here's what I get when (sporadically) I publish.  Site does publish
    Testing site is 
    http://kidsonthecreek.businesscatalyst.com/index.html
    Thanks for help.  Gina

    Thanks for reporting this - a fix for this error will be included in the next release of Muse.

  • The operating system returned error 21(failed to retrieve text for this error. Reason: 15105

    Hello everybody, 
    I have a huge database over windows 2003 server and sql server 2008 r2, all of them with all update, no firewall, no antivirus, no any server feature/role installed. 
    Over the last 2 months I suddently start getting the following error:
    The operating system returned error 21(failed to retrieve text for this error. Reason: 15105) to SQL Server during a read at offset 0x000000000da000 in file 'S:\TempDB\tempdb.mdf'. Additional
    messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB).
    This error can be caused by many factors; for more information, see SQL Server Books Online.
     I have the TEMP database split over 5 partitions on 5 different SAN disk.  beggining size of each partition fix to 20 GB with autogrow 10%.  Single Instance, around 15 DB. 
    The space on each hard disk does not reach 60%. 
    I got the above error when all temp files reach 27 GB approx. 
    I already ran a check disk, checkDB and everything says no error found, but I still got same error. 
    Does anyone know what could cause something like this?
    note, when getting the above error, the only way to fix it, because I cannot do any select on any DB is to restart the service, so each temp file start again at 20 GB and everythign seems to be fine until reach the size again. 
    Gilberto H.

    The operating system returned error 21(failed to retrieve text for this error. Reason: 15105
    Hello Gilberto,
    See System Error Codes (0-499) for error code 21:
    ERROR_NOT_READY
    21 (0x15)
    The device is not ready.
    Could be an issue with your storage system
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • OS Error 665(failed to retrieve text for this error. Reason: 15105) while performing backup

    Hi everyone,
    I am performing a backup of sharepoint 2010 content database on my sql 2008 std edition which has file stream enabled and I experience the following problem.
    When the backup reaches 40% (both when I do it via SSMS or via Maintenance plan) I get the following error:
    BackupIoRequest::ReportIoError: write failure on backup device 'K:\SQL Backup\SP_Content2010.bak'. Operating system error 665(failed to retrieve text for this error. Reason: 15105).
    Error: 18210, Severity: 16, State: 1.
    I also tried backup the database on a different disk to make sure the problem is not there, but the same error appeared when the backup reached 40 %. I also executed DBCC CHECKDB against the database but it run successfully.
    I could not find any other relevant source what the problem might be.
    Any help will be very much appreciated.
    Thanks

    Hello,
    Honestly it's going to come down to testing and root cause analysis. I don't have a single shot answer for you unfortunately.
    I would start by doing the hotfix on that KB since you had OS Error 665 (again, you can run net helpmsg 665 to see the os error message). The SQL Server error 3041 (select * from sys.messages where message_id = 3041 and language_id = 1033) is "BACKUP failed
    to complete the command %.*ls. Check the backup application log for detailed messages." Error 18210 is "%s: %s failure on backup device '%s'. Operating system error %s.". This points me back to the filesystem or storage.
    Could you P->V the server during a maintenance window so you can test? The biggest thing here is that you don't have any valid backups so you're running the risk of losing data.
    While not a method I use, you could stop SQL Server and filesystem copy the database and filestream share in the interim.
    -Sean
    Sean Gallardy | Blog |
    Twitter

Maybe you are looking for