Java problem any one solve this problem

Create a population, represented as an instance of a container class, containing about 2,000 people.
Each person in the population should have a unique name, which can be generated as "Person n" where n is the value of a counter.

But seriously folks. (what can I say, I'm bored, single, and lonely on a Friday night)
Create a population, represented as an instance of a container class, containing about 2,000 people.What is a container class--in your opinion?
Each person in the population should have a unique name.Unique names are cool.
which can be generated as "Person n" where n is the value of a counter. A counter? What kind of modifier do you think would be useful to use as a counter?
Maybe you could take a look at:
http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html
...and
http://java.sun.com/docs/books/tutorial/collections/interfaces/collection.html
... and
http://java.sun.com/docs/books/tutorial/java/javaOO/classes.html
Happy Trails.
ttfn.

Similar Messages

  • Can any one solve this problem

    when i sent request to the jsp using struts1.1 this error occurred. i couldn't understand this error. can any one let me know when such error comes and let me Know how to solve this error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:653)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:649)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.

    Its problem related to your configuration files. check struts config file

  • Can any one solve this?

    Hello Guys,
    I hv Solaris 10 update 4 Installed through Vmware on My Windows. Now I hv a POPE WAN Internet Connection
    Here are some details
    Physical address -00-53-45-00-00-00
    IP Address-59.94.140.244
    Subnet mask -255.255.255.255
    Default gateway- 59.94.140.244
    DNS Servers- 218.248.240.79
    218.248.240.135
    Now Could someone gimme step by step details on how to set up Internet Connection on Solaris 10.
    thanks
    Somil

    The IP address you have is the same as the Default Gateway. If the IP address for the server is correct then you need to determine the the address for the Default Gateway (router). The default gateway IP is placed in /etc/defaultrouter.
    DNS information is placed in /etc/resolv.conf
    The hosts line in /etc/nsswitch.conf needs to be midified to add "dns" before "files.
    I suggest reading the man pages for /etc/resolv.conf, /etc/nsswitch.conf and /etc/defaultrouter.
    Check with the network people and sysadmin to make sure you have the right IPs.
    Cheers

  • Spread Sheet Couldn't be Imported, Spread Sheet couldn't be opened because it contains cells outside the boundaries of numbers. Has any one had this problem? It is an excel file that works fine on my mac.

    When I try to import an excell file to numbers on my ipad i get an error message that says it cannot import the file or open the file because it contains cells outside the boundry of numbers. Any one have this problem. it is only one file that i have this problem with and it is an important one. I have no problem working on it with my mac and my excell for mac.

    Number is limited to about 65000 cells so if your Excell spreadsheet is too large Numbers will choke.  This is definitely one of the weaknesses.  If you don't have Excel you can use LibreOffice which is free.

  • When I try to burn a disk i get error 4850, any one had this problem ?

    When I try to burn a disk i get error 4850, any one had this problem ? , the cd burner is working ok as i can burn disks on windows.

    Try
    iTunes for Windows: Troubleshooting CD issues caused by device filters - Apple Support
    http://forums.ilounge.com/itunes-related-mac-pc-applications/217331-itunes-error -4850-burning-back-up-cds.html

  • I have an iPhone 5 unlocked. I have been using it for few weeks but 4 days ago I turned it off and in the morning it had NoService. Called tmobile and apple costumer services no one helped. Did any one had this issue and solved it?

    I have an iPhone 5 unlocked. I have been using it for few weeks but 4 days ago I turned it off and in the morning it had NoService. Called tmobile and apple costumer services no one helped. Did any one had this issue

    If you got the Unlocked message it means it was successfully unlocked by AT&T.  Apple will not relock or block it.  They have no objections to it being used on T-Mobile.  It is still under warrantee.  Take to an Apple store.  They can test it with a SIM from AT&T.  If that doesn't work have them replace the phone.  Have them verify that the new phone is unlocked.  If it does work with the AT&T card then it is a T_Mobile problem.

  • Can we call simple a java application from any one of this AS adapters

    Can we call a simple java application from any one of this AS adapters?
    Prakash
    Message was edited by:
    user629857

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • Hi all, i bought iPhone 4s. while am trying to access my Appstore Genius app appearing that it doesn't have any recommendations. could any one solve my prob?

    hi all, i bought iPhone 4s. while am trying to access my Appstore Genius app appearing that it doesn't have any recommendations. could any one solve my prob?

    After some troubleshooting, I decided to order a new battery.  I replaced the battery and was then able to get it to restore, however--after I restore it and it comes time to restart the phone, it gets stuck and doesn't turn on.
    Sorry, your repair ruined the iPhone.
    She does not have apple care and even though she loved this device, she isn't going to buy another iPhone because of all the problems shes had with this one (it's just over a year old).
    After you ruined the iPhone with DIY, Apple won't touch it anymore. You should have asked before all these had happened.
    I'm an android user myself and I love rooting/flashing new ROMS, so if jailbreaking her phone or doing some kind of super-restore with 3rd party programs might help, I'm all for it-
    Yeah, all Android user can think of is Jailbreaking, read this: http://support.apple.com/kb/HT3743

  • I have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any sugg?

    i have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any suggestions?

    This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.

  • Did any one face this - mind blowing querry

    Hi
    my client has 6 day week and sunday is a non-working day, as usual selection rule also defined accordingly.
    but one employee has taken a 2weeks ESI leave , and 2 sundays came in that time. so as u know ESI will pay for 2 weeks and company wont pay for that sundays.
    but on sunday it is not showing ESI leave. and not accepting a leave on non working day, how can i do this????? please help me any one.
    by the end i am getting more than actual paid days means sunday is getting paid double. hope u got this problem, did any one face this situation????
    plz help me.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post other kinds of diagnostic report — they're very long and not helpful.

  • Since I updated my pages to 5.01, I can't open documents created on my iPad today. It says you need a new version of pages to open document.  (My computer says it is installed).  Has any one encountered this?

    Since I updated my pages to 5.01, I can't open documents created on my iPad today. It says you need a new version of pages to open document.  (My computer says it is installed).  Has any one encountered this?

    Well, here's what I found out that works for me...
    I had a Pages icon on my dock, and launching it brought up version 4.3.  But I went to my Apps folder and found the new updated icon there and when I launced that it brought up version 5.01.  So apparently the Apple update process left two versions launchable on my iMac.  Weird...
    Rocketman

  • Windows Vista Home ( with SP2) constantly reporting that Safari 5.1.2 has crashed ( usual Windows prompt to close program) yet Safari is still running although loading pages slowly. Any one seen this recently ( note no recent install or changes to Windows

    Windows Vista Home ( with SP2) constantly reporting that Safari 5.1.2 has crashed ( usual Windows prompt to close program) yet Safari is still running although loading pages slowly. Any one seen this recently ( note no recent install or changes to Windows

    Windows reports that Safari stopped working . Windows Task Manager shows webkit2webprocess.exe  process still running even after I respond to Windows prompt and close Safari ( Safari continues running after this action )

  • I am new to Java, can any one pls tell me what exactly is "Build Path".

    Hi Techies...
    i am new to Java, can any one pls tell me what exactly is "Build Path".
    thanx in adv.
    Regards
    Nitin.V
    Edited by: Nitin.V on Feb 12, 2008 11:08 PM
    Edited by: Nitin.V on Feb 12, 2008 11:09 PM

    The "BuildPath" is a place where all the "resources" referenced by your java program exists.
    please visit http://www.u.arizona.edu/~jtmurphy/H2R/java.htm for more info

  • CAn any one supply this script

    Hi can any one supply this script for
    installing Oracle 11i...
    adautostg.pl
    In order to create a staging area...
    Help me guys...

    I had check the version of perl in linux
    perl -v
    output is
    this perl is, v5.8.0
    but in the StartCD/Disk1/rapidwizard/...the adautostg.pl
    file is not available...
    so it could not able to start
    still I tried by ./rapidwiz

  • Any one explane this?

    hello,,,,
    "BS does not shape web-tunneled/HTTPS traffic
    Posted by Evgeny on 05 December 2011 21:01:12
    The traffic of connections tunneled through the web proxy using CONNECT method (mostly HTTPS) cannot be controlled by web filters due to limitations in ISA/TMG. This unfortunately makes their shaping impossible. Until such connections are closed, BS monitoring
    shows zeros in sent/received bytes columns. But later when such connection is closed, BS is able to obtain the actual number of sent/received bytes. This data is used for traffic quota accounting.
    You can workaround it by forcing users to disable proxy settings for HTTPS in web browsers configuration. Instead their HTTPS connections should go via Firewall Client or SecureNAT session."
    Any one explane this?!!!!!!!
    How to disable proxy settings for HTTPS in web browsers configuration in isa server?
    show me a way......

    Hi,
    Could you clarify your question? I’m not quite understand your question, the ISA HTTP filter just for reverse web server publishing scenarios, you can refer the following
    third party article:
    Configuring the ISA Server 2006 HTTP Filter
    http://www.isaserver.org/articles-tutorials/configuration-security/Configuring-ISA-Server-2006-HTTP-Filter.html
    Or if you want to disable the client HTTPS proxy, you can refer the following related KB:
    How to configure Internet Explorer to use a proxy server
    http://support.microsoft.com/kb/135982
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • How to Edit perticular node in XML

    How to edit Perticular XML node ? <root> <node1> <data1>   dsfs  </data1> <data2>   dsfs  </data2> <data3>   dsfs  </data3> <data4>   dsfs  </data4> </node1> </root>What should i do to change data3 value, means edit data of <data3> ?? help me

  • "The required index.xml file is missing."

    Hello everyone ! I created a pages files a couple of days ago. I modified it successfully yesterday, by adding some jpeg files in it. But, now i can't open it. The massage is "The required index.xml file is missing." Although I still can have a "quic

  • Syncing issues with ipad2 and iphone4

    Hi, I own both an iPad 2 and an iPhone 4. I want to keep my apps on my iPad solely for my iPad and my apps on my iPhone just for my iPhone. Is there a way to sync both devices to my computer without each device having the same content as each other.

  • OBIEE 11g newbie - need guidelines please

    Hello everyone, I have installed OBIEE11g on Windows XP 32bit using simple install, mainly to start learning this technology. My initial aim is to create reports using BI publisher. From what I have read through the manuals and blogs/forums/tutorials

  • Idoc text file

    Hi all, How to get idoc as a text file? Thanks Sowmya S