🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1111

help - Whats wrong with my codes...?

#1111
From: KhAiReEl
Date: Wed, 21 Jul 1999 00:00
19 lines
971 bytes
I cant seem to compile the following codes. It works okay when I use the
Integer type, but when I need to use the Float, it simply refuses to
compile - and dumb as I am, I dont seem to know the problem.


    float pn;
    int n;
    int i;

    pn = Float.valueOf(txtFld1.getText());  <<=== This is the line with
problem...
    n = Integer.parseInt(txtFld3.getText());


Er.. do I need to declare something else before...?  Please help.

Thank you.
--
Regards
Technical Details
Message-ID: <7n275a$jh3$1@enyo.uwa.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,efb279fdc6cd6dc4,start
X-Google-Attributes: gid10d6db,public
From: "KhAiReEl" <khaireel@tartarus.uwa.edu.au>
Subject: help - Whats wrong with my codes...?
Date: 1999/07/21
Message-ID: <7n275a$jh3$1@enyo.uwa.edu.au>
X-Deja-AN: 503174578
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: The University of Western Australia
X-MSMail-Priority: Normal
Newsgroups: aus.computers.java