free hoo

Greenhorn
+ Follow
since Oct 23, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by free hoo

hi everybody
thank you .
23 years ago
hi SOLAIAPPAN
i had doubt
i understood that Strings are immutable then how can you assing a new value to
newName .
please explain iam not clear with the concept.
2.String newName = "Nick";
3. newName = "Jason";
free
hi Douglas
see that there is a classes dir that exist under jdk1.2.1\jre.
if not create it then create java dir and create your package dir
and compile, it worked for me.
the final path would be
jdk1.2.1\jre\classes\java\classfiles(package name)
try this
free

Originally posted by Douglas Wolfinger:
Hi,
I'm having problems creating a package. Here is my interface that creates the package. (Btw, I ran Console.java in ch13 of Thinking in Java, and my compiler doesn't recognize the com.bruceeckel.swing package created by that program.)
package java.doug;
public interface Inter {
float f = 0.0f;
void interMeth();
void interMeth2();
public int interMeth3(int a);
}
and here is the class that implements it...
import java.doug;
class InterClass implements Inter {
public void interMeth() {
System.out.println(f);
}
public void interMeth2() {
double d = f + -6.5;
System.out.println(d);
}
public synchronized int interMeth3(int b) {
System.out.println(b);
return b;
}
public static void main(String args[]) {
InterClass ic = new InterClass();
ic.interMeth();
ic.interMeth2();
ic.interMeth3(5);
}
}
// }
class IClass2 extends InterClass {
public static void main(String args[]) {
InterClass ic2 = new InterClass();
}
}

The compiler complains that it doesn't find the package name (cannot resolve symbol).
Any help is greatly appreciated. Thanks, Doug


23 years ago
please any one explain what a reference means .
when written
String str = new String();
str is a reference to a new object , but what does str contain.
what if i write
String str="abc";
now what str contains.
freehoo
23 years ago