Al compilar el siguiente codigo me dice: " reached end of file while parsing " 1 error.
// En este caso el archivo se llama Shirt.java
public class Shirt {
public int shirtID = 0;
public String description
= "-description required-";
public char colorCode = 'u';
public double price = 0.0;
public int quantityInStock = 0;
public void displayShirtInformation() {
System.
out.
println("Shirt ID" + shirtID
); System.
out.
println("Shirt description:" + description
); System.
out.
println("Color Code: " + colorCode
); System.
out.
println("Shirt price: " + price
); System.
out.
println("Quantity in stock: " + quantityInStock
); }
public class ShirtTest {
public static void main
(String args
[]) {
Shirt myShirt;
myShirt = new Shirt();
myShirt.displayShirtInformation();
}
}
Recien estoy aprendiendo a programar en java y no puedo encontrar el error, si alguien me lo podria explicar le estare muy agredecido.
Matias