The Artima Developer Community
Sponsored Link

Java Answers Forum
Student JAVA Assignment

1 reply on 1 page. Most recent reply: Sep 10, 2002 10:30 AM by Alan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Clovis

Posts: 1
Nickname: ccs14
Registered: Sep, 2002

Student JAVA Assignment Posted: Sep 8, 2002 1:45 AM
Reply to this message Reply
Advertisement
I'm doing my java assignment.
it is: create an application that will read input from a html file, store each html tag from the file into Multi dimensional ?char? array.

Enter 1 to list each html tag used.
Enter 2 to view how many html tags where used.
Enter 3 to view which tags where used the most and how often.
Enter 4 to quit.

I'm now up to the option 3. And i don't know what is the code to let me find the most html tags.


Alan

Posts: 1
Nickname: thor
Registered: Sep, 2002

Re: Student JAVA Assignment Posted: Sep 10, 2002 10:30 AM
Reply to this message Reply
When you run through the html file first time.
Use a counter to count how many times each tag has been used.
After this, you get what you need.

Flat View: This topic has 1 reply on 1 page
Topic: java awt Image - getting imagedata as byte[] in Applet Previous Topic   Next Topic Topic: Identifying a computer

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use