I need a program that i can alter(not copy... read on)

I am a full time student with a lot of time on my hands.... My assignment calls for me to ".... find a reasonably complex Java program and copy it and get it running. Then modify it as much as you can........."
This is all good and fine, but wait.........I don't know which program i should borrow. so i am open to suggestions, the original author will be credited within my assignment. I am a first year java student, but i have a working knowledge of basic, C++and Pascal.....

Let me give you a program that takes in a string which has some items that are comma delimited and then parses the string on the basis of the delimiter, takes out only the non-repeating strings and writes it out.
This is not a very complex program, but will give you one if you request again.
Thanks
VR
import java.util.*;
import java.io.*;
import java.text.*;
class TreeSort
     public static void main(String[] as)
          String     string1 = null;
          String temp = new String();
          String finalStr = new String();
          String [] strings = new String[10];
          int i = 0;
          StringTokenizer st = new StringTokenizer(string1, " ,\t\r\n");
          while (st.hasMoreTokens())
               String token = st.nextToken();
               strings[i] = token;
               i++;
          System.out.println("The length is" + i);
          TreeSet retVal = new TreeSet();
          for(int j=0; j<i; j++)
          retVal.add(strings[j]);
          String[] finalArr = (String[])retVal.toArray(new String[retVal.size()]);
          System.out.println("TreeSet" + retVal.toString());
          //String[] finalArr = (String[])retVal.toArray(new String[retVal.size()]);
          String stringList = new String(retVal.toString());
          if(finalArr.length > 0)
               for(int j=0; j < finalArr.length; j++)
          if(j == (finalArr.length - 1))
                         temp = finalArr[j];
                    else
                         temp = finalArr[j] + ", ";
                    System.out.println("the finalArr values" + finalArr[j]);
                    finalStr += temp;
                    //finalStr += ",";
}

Similar Messages

  • I need a program that I can download home videos and burn to a dvd

    I need a program that I can download home videos and burn to a dvd to watch on TV.

    I don't know what you mean by "download home video" but there are several DVD burner apps in the MAS. Just search burn DVD and you'll see them.

  • I need a program that can tell me the amount of bandwidth used by each host

    Dear Friends
    I need a program that can tell me the amount of bandwidth used by each host on the network in kb/s or mb/s.
    And if possible which would also records a history of use,
    what is the best program for this?
    Thanks
    Almir

    Hello friend,
      you can solve your problem with a netflow technology.NetFlow exports packets
    with information about your data flows going throught your routers or switches.
    (Usually src/dst IP address, src/dst ports, protocols, src/dst interfaces, num
    of bytes, num of packets). In the analyzator software you can see exactly what
    you need. See: http://www.cisco.com/go/netflow for more information about netflow.
    NetFlow is NOT supported on all devices, but almost devices support it. The list of
    supported devices can be found on the: http://support.caligare.com/kb/entry/42/
    Our company is developing netflow analyzer (it is the second part of netflow analysis).
    So if you want to know more, contact me at any time. Of course, you can use any other
    netflow analyzers, there are many tool available .... free/commercial... the list of applications:
    http://netflow.caligare.com/applications.htm
    Please, rate if I helped you.
    Kind regards,
    Jan

  • I need a program that will creat registration marks.  can I do this in Adobe elements 11?

    I need a program that will creat registration marks.  can I do this in Adobe elements 11?

    Most of the users look for copyrighting or having a watermark on their images to protect them from illiegal usage.
    If you are looking for this perfect use then below links can help you:
    There are multiple ways to add captions/watermark/copyright info in Photoshop Elements
    Below KB articales should be helpful in this context depending on your need and usage and expertise
    http://kb2.adobe.com/community/publishing/851/cpsid_85114.html
    http://kb2.adobe.com/community/publishing/851/cpsid_85127.html
    http://kb2.adobe.com/community/publishing/851/cpsid_85128.html
    Thanks,
    Garry

  • Need advice on a DVD program that I can use to Airstream to Apple TV via iMac

    Need advice on a DVD program that I can use to Airstream To Apple TV

    If you have mountain lion you should be able to mirror your screen on your Apple TV through an airplay settings pane in system preferencse.

  • Hi what are the needed documents so that I can avail of Apple's one year warranty? Is the Official Receipt a must? Thanks

    Hi what are the needed documents so that I can avail of Apple's one year warranty? Is the Official Receipt a must? Thanks

    Not necessarily... The Serial Number will allow Apple to ascertain what they need.
    Apple Warranty  >  http://www.apple.com/legal/warranty/
    "Choose a product" and then "Choose a region"

  • What is the best software programs that I can use to read, write and modify data / files on external HD (NTFS format i.e.  Windows) ?

    Hi guys,
    I’m new to Mac and have a MacBook Pro Lion OS (10.6.8 I think !!!) with Parallels 7 (Windows 7) installed. Can someone please tell me what is the best software program that I can use to read, write and modify data / files on external HD (NTFS format) from the Mac OS ? I heard of Paragon and Tuxera NTFS. Are they free ? Are they good ? Are there any other software programs out there ? I heard that some people have issues with Paragon.
    Thanks.

    Your best bet would be to take the drive to the oldest/compatible with that drive Windows PC and grab the files off, right click and format it exFAT (XP users can download exFAT from Microsoft) and then put the files back on.
    Mac's can read and write all Windows files formats except write to NTFS (and in some cases not read) so if you can change the format of the drive to exFAT (all data has to be remove first) then you will have a drive that doesn't require paid third party NTFS software (a license fee goes to Microsoft) for updates.
    Also it's one less hassle to deal with too.
    .Drives, partitions, formatting w/Mac's + PC's

  • I need an app that I can write on my photos, then edit what I've written after I transfer the photo onto my computer.  Anyone know of any apps that will do that?

    I need an app that I can write on my photos, then edit what I've written after I transfer the photo onto my computer.  Anyone know of any apps that will do that?

    Try to contact iTunes support here:
    Apple - Support - Express Lane - Product Selection

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • How do I make and keep a copy of a photo in iPhoto so that I can edit the copy and keep the unedited original?

    How do I make and keep a copy of a photo in iPhoto (version 9.5.1) so that I can edit the copy and keep the unedited original?

    You don't have to. iPhoto does that automatically. Note the command in Photos menu to 'Revert to Original' and the original can be exported at any time using the Export command.
    Longer answer:
    All edits in iPhoto are virtual. The database records your decisions and then applies them to a copy of the original. So your original is untouched. Your edited version is never "fixed" until you export it.

  • I need pdf files so I can export, not hard copy. When I 'print' then 'save as pdf', I get blank docs. Why? How can it be resolved?

    I need pdf files so I can export, not hard copy. When I 'print' then 'save as pdf', I get blank docs. Why? How can it be resolved?

    Which version of Acrobat?
    What app are you printing from?
    Which version of Mac or Windows?
    Do these seem to be normal PDF documents - but just blank pages? How many blank pages?

  • HT203180 I have bought several tv seasons from the itunes store. Recently some episodes will not sync with my ipad. The error message is that the file "could not be read or written". Previous episodes of the same series synced successfully.

    I have bought several tv seasons from the itunes store. Recently some episodes will not sync with my ipad. The error message is that the file "could not be read or written". Previous episodes of the same series synced successfully. Also while watching the same episode on my laptop (Mac Book Pro) it freezes.

    I had this same message appear today when i was putting new music on my ipod touch 4th gen. The only difference is that I wasnt using an external drive. I was using the one on my computer. This is the first time i have had this problem

  • When trying to Sync my iPhone i got a message saying that my phone could not be read and that it should be restored, upon doing so i got another message saying the iPhone software update server could not be contacted what do i do?

         When trying to Sync my iPhone i got a message saying that my phone could not be read and that it should be restored, upon doing so i got another message saying the iPhone software update server could not be contacted what do i do?
         I have now discovered that i cannot update or restore any of my devices

    Were those items purchased or downloaded under a different apple ID than what you are logged into on the phone?

  • Why can I not copy paste anymore in Dreamweaver CC?

    Help! Why can I not copy paste anymore in Dreamweaver CC? It was working fine a week ago, did not install or delete anything in this time, the options from the pull down menu are ghosted, ctrl+c ctrl+v doesnt work. I could use paste special from the pull down menu and did.  Paste special worked once, now is ghosted too.

    Try renaming the Configuration folder to Configuration-backup.
    The folder can be found as in http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/

  • I  need a program that translates a FrameMaker 5.5 dokument to PDF.  Is there an Adobe product  that can provide that?

    I need a tool that can translate a FrameMaker 5.5 document to PDF. Which Audobe product can provide that?

    Thanks. I don't remember if Save as PDF worked as advertised in FrameMaker 5.5 -- I think it did not. Anyway, if Acrobat is not installed, it will be needed. So, if the poster has Acrobat installed with FrameMaker, then printing to PDF is all that is needed.

Maybe you are looking for

  • HT4972 My music won't erase in the process? I can get it back again?

    I have over 1,000 songs that I do not want to lose!!! But I need to update my iPod touch I can't add any apps since it say I require iOS 5

  • How to deploy and start PHP web services required for a process

    hello everyone! i ve implemented some php web services. One of them is ManagePatientsImpl.php class and the corresponding ManagePatients.wsdl. How can deploy it? What are the files required apart from them? In addition there are some GUI-files. Shoul

  • Closing open Goods Receipt PO's

    Hi All, We want to close the open GRPO. Is there any way like DTW or else to close them in mass because we have around 5000 open GRPO's. Please reply as soon as possible. Regards, Abhishek

  • Error 402653144 - what is that?

    I upgraded to 6.4and updated software and then tried to upgrade iphone at Itunes request and now I have no iphone just this plastic thing with an Apple Icon and a line under it- I am so frustrated - got the error message - anyone else?

  • Emaling photos as jpegs to pc

    When I try to email photos from iPhoto to other pc's the photos come across as "large opened pictures". I tried control clicking and selecting "view as icon" before sending pics by email. This didn't help. Any suggestions?