2 directories setup
F:\Java_Projects\inttest1
I have a file called integertest.java in this directory:
contents are
package inttest1;
public class integertest
{
int [] intarray;
public integertest()
{
intarray=new int[25];
}
void setelement(int i,int j){intarray[i]=j;}
int getelement(int i){return intarray[i];}
}
==========================================================
F:\Java_Projects\inttest2
I have a file called useintegertest.java in this directory
contents are:
package java_projects.inttest2;
import inttest1.*;
public class useintegertest
{
public static void main(
String[] args)
{
// Display "Hello World!"
System.out.println("Integer
test, Hi Rob!");
integertest itest=new integertest();
}
}
==========
When i goto to compile useintegertest.java .. i get the following errors:
F:\Java_Projects\inttest2\useintegertest.java:3: package inttest1 does not exist
import inttest1.*;
^
F:\Java_Projects\inttest2\useintegertest.java:15: cannot resolve symbol
symbol : class integertest
location: class java_projects.inttest2.useintegertest
integertest itest=new integertest();
^
F:\Java_Projects\inttest2\useintegertest.java:15: cannot resolve symbol
symbol : class integertest
location: class java_projects.inttest2.useintegertest
integertest itest=new integertest();
^
3 errors
Tool completed with exit code 1
Why cant i get the inttest1.*; to be seen .. I've tried all the sensible combinations..
Thanks for the help !
Rob