Master:
# 1    Had a ten seconds break, then solved a java coding problem                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 250
Wealth 62
Posts 230
Login 07:37:57
I worked in a folder which contains folder docx, and there are a lot of *.docx

Error message said cannot find the file abc.docx in folder docx.
I tried docx\abc.docx, syntax error in java.
Tried docx/abc.docx, cannot file error.

So one of the solution is:

.\\docx\\abc.docx

Happy weekend!
Hits: 195, Date: 2010-02-26 23:58:35
[Agree] ( 6 ) [Against] ( 5 )

# 2    use regular expression to remove unwanted string in java                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 250
Wealth 62
Posts 230
Login 07:37:57
I wanted to remvoe (unexpected letters KEYWORD unexpected letters) in a string html, so i use this method to remove.

html.replaceAll("\\([a-zA-Z]*{0,20}KEYWORD([a-zA-Z]*{0,20}\\)","");
unexpected letters are less than 20 chars or nothing.

Hope this helps someone.
Hits: 192, Date: 2010-03-03 21:45:05
[Agree] ( 6 ) [Against] ( 5 )

1 - 2 [ 2]

Reply: Had a ten seconds break, then solved a java coding problem

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing