Darkforum.com - Dark Stories, Dark Art, Poetry, Photography, Debates and Discussions
Home FAQ
Go Back   Darkforum.com - Dark Stories, Dark Art, Poetry, Photography, Debates and Discussions > Discussions > Debate and Discussion > The Computer Lab
Reload this Page Java programming..
The Computer Lab Discuss Java programming.. in the Debate and Discussion forums; Umm.. just wondering.. anyone know how to do Java? Because I have some question about it.. (^^) Anybody willing to help? Thanks...
Why not Register and remove some of the ads from The Dark Forums
Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
Amnesia is Offline
Bachelor of Sex
Amnesia
 
Amnesia's Avatar
 
Posts: 108
Gallery: 0
Comments: 0
Join Date: Aug 2002
Location: Living in Paradox, does that make sense??
Zodiac Sign: Leo
Rating: Not Rated
Credits: 4,351
   
Java programming.. - 09-26-05

Umm.. just wondering.. anyone know how to do Java? Because I have some question about it.. (^^)
Anybody willing to help?

Thanks


No more sensation.. is sucks....
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  (#2) Old
gArGOyLe^^ is Offline
The ModFather
Forum Guide Mentor
gArGOyLe^^ will become famous soon enough
 
gArGOyLe^^'s Avatar
 
Posts: 8,402
Gallery: 8
Comments: 26
Join Date: Oct 2000
Location: ?>
Zodiac Sign: Sagittarius
Rating: 2 Votes / 5.00 Average
Credits: 280,930
   
09-26-05

how about you post the question and then let people answer.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  (#3) Old
Amnesia is Offline
Bachelor of Sex
Amnesia
 
Amnesia's Avatar
 
Posts: 108
Gallery: 0
Comments: 0
Join Date: Aug 2002
Location: Living in Paradox, does that make sense??
Zodiac Sign: Leo
Rating: Not Rated
Credits: 4,351
   
09-26-05

Hahaha.. sorry.. Ok, I got this task to develop a program in Java that will take a HTML file, remove all the HTML tags and save just the content of the HTML file in a text file, the HTML is from a local drive.
Umm.. I'm guessing that it would be good to use replaceAll() method in this case, but I don't have any idea about regex, can someone give a quick explanation about regex? I did check the documentation, but I still couldn't really understand it.. Or perhaps any other method? Will StringTokenizer do?
Thanks man..

^^


No more sensation.. is sucks....
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  (#4) Old
gArGOyLe^^ is Offline
The ModFather
Forum Guide Mentor
gArGOyLe^^ will become famous soon enough
 
gArGOyLe^^'s Avatar
 
Posts: 8,402
Gallery: 8
Comments: 26
Join Date: Oct 2000
Location: ?>
Zodiac Sign: Sagittarius
Rating: 2 Votes / 5.00 Average
Credits: 280,930
   
09-26-05

java.util.regex package will have the regex stuff. I've never used regex in java but i doubt that it'll be different. Perl and PHP is the best for that.

this expression will remove the HTML tags as far as I know

s/<(.*?)>//gi

It will match something that starts with < and then has anything one or more times and then ends with > and ignores case

probably not the best way because it'll grab other stuff as well.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  (#5) Old
Amnesia is Offline
Bachelor of Sex
Amnesia
 
Amnesia's Avatar
 
Posts: 108
Gallery: 0
Comments: 0
Join Date: Aug 2002
Location: Living in Paradox, does that make sense??
Zodiac Sign: Leo
Rating: Not Rated
Credits: 4,351
   
09-26-05

OK I'll try.. by any chance.. do you know anything about bufferedReader? where you read a file from a source? yeah.. do you know how to take the whole file as one huge string? so say I get the HTML file and make it as one huge string... instead of reading it line by line...


No more sensation.. is sucks....
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Language Inventor, or Serial Killer? (antihero) Offtopic Discussion 8 08-09-05 04:29

Galleries
Toggle Newest Thumbs
RPG
Got Nades?
For Tiggs
A Storm Approaches
A Storm Approaches
A Storm Approaches
The Day I Moved In
blah
Just Me Again
ABU's

Powered by vBadvanced CMPS v3.0 RC2


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com

© 2006 - 2008 Dark Forum | About Dark Forum | Legal | A member of the Crowdgather Forum Community


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53