Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: duan
  • Order by date
  1. duan

    Fetching a URL in TextArea within applet

    It's a GUI interface in java applet. What I want to do is let user input a URL in a TextArea and program will get this URL to retrieve the content of the indicated web page. source code is: -------------------------------------------------- if ( str.equals("Submit data source") ) {...
  2. duan

    String/substrings

    hi, I'v encountered such a question. In Java 1.4 Blta version, there are some functions support Regular Expression(RE) which can deal with this problem. this link is helpful for RE. http://www.win.net/~stevesoft/pat/ You may also find out more new about Java 1.4 in java.sun.com Good luck. duan
  3. duan

    Problems with containsKey()

    Thanks guys! I found I made a mistake when read in words from file. one method should be applied for each chopped words. Word.trim(); it works now!
  4. duan

    Problems with containsKey()

    Yes.I'v checked Word_Def. Info. has been added in it properly. it also can be print out on the screen. It's true some stuff in it. I also checked if the words contains white space which can cause the problem. Any help? j.
  5. duan

    Problems with containsKey()

    Dear all, Got problems with HashMap.containsKey().. Here is the key code: if ( Word_Def.get("language")!=null ) {System.out.println(Word_Def.get("language"));} Word_Def is a HashMap stored the word and its definition. Word_Def has been created by reading a chopped...
  6. duan

    int ---> Object Integer?

    Hi, Dear all Can you help me to sort out this problem? Here is the pat of my code: variable me is a hashmap's Entryset. 1. v = ((Integer)me.getValue()).intValue(); 2. int x = v++; 3. hm.putValue( (Integer) x ); The error lies in line 3."inconvertible type,required...
  7. duan

    java.util.regex.* --how it works!?

    Hi,Dear i'm working on processing the text using Java. I found java.util.regex.* can deal with Regular Expression which will enable me split the text as easy as effcient. Drop several lines of the test code on it: ------------------------------------------------------------ String line =...
  8. duan

    Hashtable vs. Vector

    Thanks for your suggestions. I'll try to implement it. :-) duan
  9. duan

    Hashtable vs. Vector

    Dear, I'm now working on a project which aims to do: 1. Read in a ASCII txt file which is a on-line English Dictionary. I don't know which data structure I should use Hashtable or...? Hashtable seems suitable because it can be filled in with word and its definitions (correspond to key and...

Part and Inventory Search

Back
Top