Results 1 to 3 of 3
  1. #1
    mgm2010 is offline Member
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    0

    Default Cannot find 'Dataset'

    Here is a code to compare three numbers. It however gives out the following error
    ''Cannot find symbol class DataSet"
    Java Code:
    import java.util.Scanner;
    public class CompareNumbers{
    	public static void main(String args []){
    		
    		Scanner in = new Scanner(System.in);
    		
    		System.out.println("Please enter the three numbers");
    		
    		double x = in.nextDouble();
    		double y = in.nextDouble();
    		double z = in.nextDouble();
    		
    		DataSet s = new DataSet( x, y, z);
    		
    		System.out.println("The numbers sorted are:\n" 
    		                             + s.getSmallest() + "\n"
    		                             + s.getMiddle()   + "\n"
    		                             + s.getLargest());
    	}
    }
    2. Does it have anything to do with the fact that I am using jdk 1.5.0_18 ??

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    830
    Rep Power
    6

    Default

    Hi,
    import the package related to DataSet and place the corresponding jar in the classpath.

    -Regards
    Ramya
    Ramya:cool:

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Can't find class
    By bozovilla in forum New To Java
    Replies: 2
    Last Post: 07-31-2008, 05:45 AM
  2. Help with implementation of the DataSet class
    By silvia in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:47 AM
  3. cannot find a JVM installed
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-29-2007, 08:23 PM

Posting Permissions

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