Some ideas

Hello Java users,
I have a small task which i have to do..I have to find statistical answers based on a paragraph which is held on another file...I have managed to set a startpoint which has enabled me to implement a contents page which is based on the paragragh..I have set myself the target of finding the following1/The total of non space characters
2/A count of the number of uppercase characters
3/A count of the number of lowercase characters
4/The most frequently occuring uppercase character
5/The most frequently occuring lowercase vowel
6/The average number of vowels as a percentage of the total number of non space characters
7/The average number of consonants as a percentage of the total number of non space characters.
However can anyone give me any ideas how to start it off..My programming is still at the basic stage, so relatively speaking i should probably use basic java code..Any ideas and tips would be appreciated..I am basically looking for a base to start, then hopefully the rest will become more apparent..
Thanx again
If anyone wishes to email me: [email protected]

hi
for 2/A
for counting no of uppercase characters u should check
just try API for right syntax
isUpeercase(){
then increment a counter
at the end of file display that counter
same for 3/A with lowercase
to check the most occouring upercase u will have to store all the uppercase characters in an array and a counter in second array at the same location of existing uppercase letter. after u will have all uppercase letters and their no. of occurance .. compare the arrays all elements with each other then u will find the biggest no. after that u can get the location of that no. and then find the letter from th esame location the second uppercase letter array this way u can get the most occoured uppercase letter
to find a vowel u can compare the reading string character with vowel letters like
if (input.equals("a")){
cnta++;
}else
if (input.equals("e")){
cnte++;
}else
if (input.equals("i")){
cnti++;
}else
if (input.equals("o")){
cnto++;
}else
if (input.equals("u")){
cntu++;
after this compare the counters and u will find th emost occuring vowel
coudnt understand ur question 6 and 7 explain them a bit further plz then i will try those as well

Similar Messages

  • Looking for some ideas for setting up and xServe RAID

    Everyone,
    Here is what I would to do. I have a new xServe and 7TB RAID. I would like to set all of my end users up with Portable Home Directories. They all have laptops and I would like to use their PHD as my backup source. I would set them to sync in the background a couple of times per day and then write to tape at night.I have about 60 end users. I would also like to use the same xServe and RAID as my Kerio mail server and mail store. What I am looking for is some ideas of how to go about setting up the RAID. I was orginially thinking of setting up as one big RAID 5 using all 14 drives. What I would like to know is what is the number of drives that would need to fail that would render the RAID unrebuildable? I am now thinking about splitting the RAID into two 7 drives in RAID set up as RAID 1+0.
    I am not sure if I phrased a lot of this currently, but here is quick recap of what I would like to know. What would be the best way to set up a 7TB RAID to store PHD and my Kerio mail store that provides me the most redudant and fastest acccess.
    Thanks in advance.
    Sincerely,
    Daniel Krajc

    Daniel,
    I'd suggest a 6 disk RAID 5 plus a hot spare for each side. It will give you about 2.4 TB capacity per side (4.8 total), and it can tolerate 2 drive failures per side without losing data, provided there is sufficient time between failures for the RAID set to automatically rebuild on the hot spare. This window is 8-12 hours.
    Note with Xserve RAID the two sides are totally independent in the data path -- it will look like 2 separate LUNs. If you want to combine these at the host level, as RAID 0 or RAID 1 to look like a single volume, you can. But the Xserve RAID will not combine them itself... the RAID controllers are independent... it might as well be two separate RAID volumes in the same chassis.
    I assume you'll plug this into an Xserve that is serving as an Open Directory server and a file server?

  • Give me some ideas for the project.

    Hi,folks
    I am not familiar with programming in web services. Now i have a project related to web services need to finish. I want to someone give me some ideas for the project. how can i implement the access control services. is there anyone can give me some related links for me to learn.
    Project Title: Implementing an access control service
    Project Description:
    Web services are emerging as a new approach to system construction and will make a major impact on the engineering of future business systems. They will allow a move from enterprise to inter-enterprise computing. However, with inter-enterprise computing, there are major problems with providing access to shared data, given that enterprises will not wish to share all data with partners.
    This project aims to investigate this problem by developing a prototype of an access control service that will help decide whether or not data access should be permitted. In essence, companies will outsource their access control to this service and so will not need to maintain their own access control lists for a potentially rapidly changing set of users.
    Suggested Platform: Windows or Linux
    Suggested Languages & Tools: Java

    Well, the approach I've come accross is a central server which is typically accessed indirectly from the web servers (e.g. through SOAP protocol or RMI).
    The remote server sends a user id and a password (or more likely a digest of the password), and receives a session token, basically just a random string of characters which is checked with the central server each time a secure transaction is attempted. The token will be stored in a session object, or perhaps directly in a cookie or in the URLs.
    Active session tokens are stored on the central server for comparison. This means the password doesn't have to be retained in the server.
    It's possible for the session token to be transfered if the user switches from one site to another on the same authentication server.
    Sun distributes one of these beasties, by the way, so you could take a look at their product specs.

  • Just some ideas would be nice

    Hi,
    Looking around for some innovative ideas for a project(FYP), I want to base my FYP on J2EE and/or J2ME, something like a front-end implementation(either web-based/mobile device) talking to back-end(mySQL/server integrated) through JSP. Mainly I want to play with JSP,Servlet,EJB,JDBC. I have a basic understanding of this technologies so it will be good to go in deep down.
    However, I am lacking some ideas, as to which route to take, whether to explore J2ME with J2EE at this point or whether web-based systems are what i should be developing compared to mobile device systems. basically where is the demand now a days in the industry?.
    It looks like most of the innovative/useful systems have been thought about/developed, (flight booking, shopping carts, online banking systems etc). Are there any web or mobile device based purposeful/useful system need researching/developing? something that could help the community. any ideas are very welcome.
    I would appreciate any help.
    thanks

    I think you have to pay more than 10 Duke Dollars for a lucrative idea. give me a lucrative idea, priceless!
    One that will teach Senator Orrin Hatch that
    destroying a few million computers for the sake of the
    entertainment industry is a bad idea.its the $18,000 which he earned in songwriting royalties which is talking and as long as he gets his CDs available on his website, he doesnt care about others. http://www.guardian.co.uk/usa/story/0,12271,980890,00.html
    I think Randy Saaf of MediaDefender tried educating him about this, so there is no need to come up with a whole system to teach such a person.
    However, i do not support copyright abuses. not fair.
    anymore ideas?
    You could kill two buzzwords with one stone, and develop a mobile->device app with J2ME that uses web services to communicate with a >server. Maybe it could be for buying movie tickets or something. 2-in-1, thought about it, even an m-commerce system such as m-banking system, reading about it, the security issues involving a bank is a project on its own. what you think of the idea?
    It looks like most of the innovative/useful systems have been thought about/developed...
    Why does it have to be original? Why not just pick something that's already done and make one that's faster/better in some way?
    That's what Microsoft always does :-) Considering this too.
    Here's and idea, write this for the SEC's members and you'll make a fortune.
    http://story.news.yahoo.com/news?tmpl=story&cid=74&ncid=74&e=3&u=/cmp/20030619/tc_cmp/10700408thanks will read about it.
    just to make things clear, I dont want a quick-get-rich scheme or a fortune yet, just a decent project where i can research & learn the technology.
    thank you all for your time, more ideas are always welcome.

  • Need some ideas for programmatic/dynamic ADF BC using JDeveloper 10.1.3

    Using ADF Faces 10g, I built a page which is used to upload an excel file to the server. The contents of the spreadsheet is further parsed into a 2 dimensional array. In addition, I am able to determine the database table information from the worksheet name (table name) and row 0 (column name). I can certainly construct a sql statement and attempt to insert this data into the database. However, I would like to create updateable business components to display it back to the user in a af:table and also utilize built in validation methods. Is it possible to create an updateable entity based vo where the underlying table/columns are defined at runtime? Ideas are appreciated.
    Wes

    http://jobinesh.blogspot.com/2011/06/building-programmatically-managed.html (This blog is on a 11g release , but hope it gives you some idea especially the Employee part which comes from a custom datasource)

  • Please give some idea friends.

    I have a text file with 10 lines. Eas line is containing 3 words separated by colon. I have a bean to get those 3 words. What i want to do is to create 10 bean object, initialize them with the data available in the text file. and finally store those beans in a array list. I have written the following code to read a line and bread the line in tokens. After that how i should proceed. Please give me some idea.
                            for(String line = null; (line = br.readLine()) != null; lineCount++) {
                                    StringTokenizer tokenizer = new StringTokenizer(line, ":");
                                    while(tokenizer.hasMoreTokens()) {
                                            String strTemp = tokenizer.nextToken();
                                            System.out.println(strTemp);
                                    }Thanks.

    you should have an array of strings to store the information and then call your object constructor, passing it the various elements in the array. I couldn't tell from looking at your code, but if you don't include a space in the tokenizer constructor, then it will return a word including a space. I'm not sure if that matters to you or not.

  • I need some idea for my last project about Java

    Hi my name is suzanna from Indonesia. I have lots of interest with Java programming and I want make something about it for my last project. It's very important and I need some idea...could u give me some topic? I'm sorry if my english is very bad.thx,bye

    Here's some popular ideas:
    image steganography, chat client/server, spyware, client/server file transfer, forum content management/enforcement, anything with reflection, anything with communicating with an external device such as camera or modem or robot, writing your own replacement for the java.util.Calendar class, anything with custom class loaders, splitting a string into a string[]
    And for an extra challenge:
    dominition-based repetition, implementing a JVM which represents 'null' values internally using some other integer value than 0

  • Need some ideas.

    I would like some flash on my site to make it more live, but I'm so out of ideas. Anyone got some ideas on what to make where on this site: http://fredhost.com
    Suggestions is very welcome

    I think your site design is great and the asthetics are very captivating.. Maybe just some menu button actions or transitions to give it a little dynamic zip.

  • Need some Idea for my final year project to increase buffer size

    hi...i need some idea from someone to give some idea, advice or some excersice/toturial about " how to increase buffer size" on my final year project, i have try find the solution..but it's still have problem on my oscilloscope.VI. I was design my final year project using LabVIEW 8.6 and now i state my design for someone to refer my project.
    Thank You  
    Attachments:
    Oscilloscope A.llb ‏166 KB

    Don't know if this is what you're searching for, and I don't know if there is such a function in LV 8.6, but I'm using LV 2010 and under DAQmx Pallete, you go to "Advanced Task Options", there is a function "Configure Output Buffer", in which you can configure the buffer size you want.

  • Can you give me some idea why Temperature Need to cool down before you can use it. as this appears after 5min using.

    Dear Sir/Madam,
    My questions:
    Why Temperature appears and ipad need to cool down after 5m of using and not even hot. The guy from the apple store where i bought my Ipad2 told me that the motherboard need to be replaced. Ca you help me and give me some idea on how much it cause of the motherboard.
    Thank you
    Victoria

    if you need a new logic board for you iPad 2 i am sure the cost will be about 50% of what you paid for the iPad 2 $249.00, Take a look at this link, http://www.apple.com/support/contact/

  • Some ideas for Apple

    Here's some ideas for a future version of iTunes:
    Why not have multiple genre listing available? For instance a track can be both 'Soundtrack' and 'Rock', or for crossover genres, both 'soul' and 'funk'.
    Also, how about a customisable type of playlist creator that works like this:
    You take tracks and join them together in 'trees', by linking them using a kind of rubber band device. The playlist then follows a random path through the music collection, but only following the branches of the tree - so you could get a smooth musical journey from one genre to another: Reggae --> dancehall --> drum n bass --> hardcore --> techno --> house. Or Rock --> Psychedelic rock --> Funk ---> Soul.
    I've got a million more ideas like that if you guys at Apple want to offer me a job...

    Reflect, since this is a user to user forum only, no one from Apple will see your ideas. This link will tell you how to submit feedback to the iTunes team.
    http://docs.info.apple.com/article.html?path=iTunesWin/6.0/en/680win.html

  • Some Ideas from you

    Hello
    I am developing a query(2) which will first execute another query(1) and pop up the variables to be entered. Now this query 2 is filtered on the data which is coming from Q1. In Q1 i have a hier node variable. Now the user will select a node to see the data for that paticular node...In Q2 i have to make 2 KF's.
    1st KF will be based on the node the user has selected.
    2nd KF has to exclude the node which he has selected.
    Any idea how i can do this
    thanks

    You will have to look for exact solutions yourself but here are some ideas (using the command wizard in WAD) - you can call up a query using the command SET_DATA_PROVIDER_PARAMETERS (use this to call up Q2). And in the same command sequence, bind the variables in Q2 (or filter Q2) using the commands SET_VARIABLES_STATE, SET_SELECTION_STATE, SET_SELECTION_STATE_BY_BINDING etc. Use the characteristic bindings from Q1 that you want to pass on.
    PS. Please put meaningful subject when posting new threads.
    Edited by: Mayank Gupta on Aug 28, 2008

  • I need some ideas

    I do not know if this is the right place to ask for but i need some ideas and help.I need to work on a project to develop a Web Service, that receives data from 2 remote machines at different places , compare them and then return the result to first one.I am not a good java programmer so could anybody tell me please which part of the Java i must learn and what areother topics i must know.
    thanks

    Well I would say:
    Java Server Pages + Struts
    and maybe even
    J2EEJSP/Struts are probably unnecessary for this project. Other J2EE (a superset of JSP/Struts) may be overkill as well, depending your needs. I'd recommend starting here:
    The Java™ Tutorial - Lesson: All About Sockets
    Sockets programming in Java: A tutorial
    If, however, you're "not a good Java programmer", network programming may be a bit challenging, and you may want to start at a lower level of difficulty before diving in. To that end, I recommend the following resources:
    The Java™ Tutorial - A practical guide for programmers
    Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
    New to Java Center
    How To Think Like A Computer Scientist
    Introduction to Computer Science using Java
    The Java Developers Almanac 1.4
    JavaRanch: a friendly place for Java greenhorns
    jGuru
    Bruce Eckel's Thinking in Java
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java

  • To get some idea about central instance, dialog instance, load balancer etc

    Hi,
    I want to get some idea about central instance, dialog instance, load balancer, cluster nodes etc.
    can any one help with some links or blogs or docs.
    Thanks
    Jhansi

    Hi jhansi
    Follow this pdf this will answer all your questions
    http://help.sap.com/search/highlightContent.jsp
    also this is a very good book on ABAP which contains answer of your all questions
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Thanks
    Sandeep
    PS: if helpful kindly reward points

  • I have some Ideas which i wanna contribute to apple Iphone how do I go about it

    I have some ideas which I think will be great if they are added to the apple products how do I go about contributing my Ideas so that they can be implimented.

    http://www.apple.com/feedback/iphone.html
    Read their unsolicited idea policy first before you submit:
    http://www.apple.com/legal/policies/ideas.html
    Regards.

  • Need some Ideas, please

    I would appreciate any suggestions or ideas as to any additional features I could possibly implement in my program. This is part of my final year degree project.
    The program is intended to be an OO Documentation Tool and its main function is to convert Java source code to UML Class diagrams.
    The UML Class diagram will include Inheritance and Associations.
    Other features that I have decided to implement are:
    - Facility to generate custom HTML documentation ( tables listing the variables, methods (including parameter details, visibility etc) etc for each class). I have also managed to convert the java source code into HTML, with colored keywords etc.
    - facility to view the source code of each java class in the main program, alongside the diagram.
    - facility to save the uml class diagram as a GIF and JPEG image file.
    That's just about it at the moment, I'm scratching my head trying to think of other possible ideas.
    One idea I have thought about is possibly extending the system to cater for C++ classes but I think that might turn out to be a little over ambitious.
    Please please give me some ideas, I need them.. :)
    PS. Can someone suggest me a good name for this program?
    I was thinking of calling it VisualJ or ModelJ but I notice there are already existing programs with this name.
    The best nomination for the program name will get a star prize. :) 10 DD points.

    design pattern identification.. hmm, I'll have to read up on that.
    jUMbLe , that sounds good..
    Please keep the ideas coming, folks. :)
    Much appreciated,
    Regards,
    Tony.

Maybe you are looking for