/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
package tio not found in import
Fra : "Williams"


Dato : 18-12-00 17:18

By the way here is the code that I am trying to run.


//AreaOfBoxes.java
import tio.*;
class AreaOfBoxes {
public static void main(String[] args ) {
int length, width, height;

System.out.println("\n\nThis program will give you the area of a box.");
System.out.println("All that I need from you is the length, width and
height,");
System.out.println("and I'll do the math.");
System.out.println("\n\nPlease enter the width.");
width = Console.in.readInt();
System.out.println("Please enter the height.");
height = Console.in.readInt ();
System.out.println("Please enter the length.");
length = Console.in.readInt();
System.out.println("The area of your box is.");
System.out.println(height * length * width+" squared " );
}
}


--------------------------- Compiler Output ---------------------------
AreaOfBoxes.java:2: Package tio not found in import.

import tio.*;

^

1 error


Double click on the line with file name
and error number to locate the error.


--
Posted from IDENT:qmailr@mail1.stofanet.dk [212.10.10.6]
via Mailgate.ORG Server - http://www.Mailgate.ORG

 
 
Søg
Reklame
Statistik
Spørgsmål : 177552
Tips : 31968
Nyheder : 719565
Indlæg : 6408849
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste