Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2016
    Rep Power

    Default "string cannot be resolved to a type" error

    I don't understand why, even though it's already 2016, that Oracle hasn't made a string a built-in datatype, but what is the import statement for strings again?

    Java Code:
    import java.text.NumberFormat;
    //import statement for strings?
    public class Product {
    	//instance variables:
    	private string itemName;//string cannot be resolved to a type
    	private string Description;
    	private double price;
    }//end of class body

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: "string cannot be resolved to a type" error

    Don't start duplicate threads for the same question; I answered in your other thread; closing this one.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Replies: 3
    Last Post: 03-09-2014, 07:57 AM
  2. Replies: 3
    Last Post: 10-30-2012, 03:06 PM
  3. "x" cannot be resolved to a variable - error
    By Naxix in forum New To Java
    Replies: 1
    Last Post: 03-18-2012, 08:31 PM
  4. Replies: 10
    Last Post: 12-07-2010, 12:29 PM
  5. Error - "The import org.junit cannot be resolved"
    By Jessaurum in forum New To Java
    Replies: 7
    Last Post: 11-03-2009, 03:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts