Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Gnome986

Greenhorn
+ Follow
since Jul 10, 2001
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 Gnome986

code here:

here i use finally to catch the exception,but why compiler will occur error and tell me FileNotFoundException didn't be catch?
I wanna use JTree widget to make a file explore,but i don't know how to get the disk information,that is say i don' know the partitions(for example,c:,d:,etc) information on the custom's computer. Additional,i wanna the program be cross platform,so if i have to write different programs which run under win and linux operate system?
Plz don't ask me why not put the poster in the board of Swing,and i will tell u i have done that already,but no one help me at all.

[This message has been edited by Gnome986 (edited August 28, 2001).]
I thank there must be many export of java can answer my question which barreled me for a long time,but to this day,no one answer anyone.what's wrong?
19 years ago
i wanna write a java editor which can edit file and compile .java to .class.
here is my code:

i wanna catch the std output and display it in a JTextArea,but when i run those code,alway lanch a new window.
how can tell me how to do? and who give me some snippet about it,thanks.
19 years ago
I wanna use JTree widget to make a file explore,but i don't know how to detect the disk information of custom's computer..that is say i don't know who many drivers (for example c:,d:,etc) on the custom's computer.Additional,i wanna the program is cross platform.
thanks anyone who help me
19 years ago
I think that two methods are all work well
import java.awt.Color;
public class test
{
public static void main(String[] args)
{
Color a = Color.red;
Color b = Color.red;
if ( a == b )
{
System.out.println( "equal" );
}
else
{
System.out.println( "unequal" );
}
}
}
my question is:
a == b means var a and var b have same address.
and a.equals(b) means a and b have same value.
so i think the output should be "unequal"
but the output is "equal"
why
can u give me a copy of sample code about what you said?
email:aspphp@fm365.com
thanks very much
19 years ago
[code]
Which methods can be legally applied to a string object?
a.equals(String)
b.equals(Object)
c.trim()
d.round()
e.toString()
the answer is a b c d e
my question is focus on a.
because i have viewd the api for jdk1.3 and i merely find the method of equals(Object obj) at the the class of String.So i think the answer shouldn't include a.
my english is poor so i don't know if i explain clearly.