Cipher program.. in need of a little guidance

I understand I posted many messages about this subject. But I just wanted to start a new thread on this as a whole. I apologize for that. Anyways I can't get this thing going right... I want to take a repeating key and encode words with it. This program takes text files and the first line is all ints (the repeating keys) and the next lines are ones to be encoded and decoded.
I left a big comment on what I need to do and also if you see any obvious problems please let me know. I really appreciate it. Thanks.
import java.io.*;
import java.util.*;
public class RepeatingKeyCipher<E>
   public static void main(String[] args) throws IOException
        RepeatingKeyCipher obj = new RepeatingKeyCipher();
        File file = new File("in.dat");
        PrintWriter outFile = new PrintWriter(new FileWriter("out.dat"));
          Scanner fileIn = new Scanner(file);
          Queue<Integer> keyNumbers = new LinkedList<Integer>();
          Queue<String> plainText = new LinkedList<String>();
          int keyLine;
          while(fileIn.hasNextInt())
               keyLine = fileIn.nextInt();
               plainText.offer(keyLine);
          keyNumbers.offer(plainText.poll());
          Queue<String> cipher = new LinkedList<String>();
          cipher = obj.encode(keyNumbers, plainText);
          //for(int i = 0; i < message.length; i++) {
     private int front;
     private int rear;
     private int size;
     private char newLetter;
     private String alpha = "abcdefghijklmnopqrstuvwxyz";
     public char encode (Queue<E> key, Queue<E> plain)
     {//returns new letter
        /* From here on you just find a way to seperate the key element.
             Then you seperate the first character from the plain queue.
               Then use the nested loops to convert and add back to a third
               queue. */
        Queue<String> encodedText = new LinkedList<String>;
          StringTokenizer st = new StringTokenizer(message);
          while(st.hasMoreTokens())
               String word = st.nextToken();
               int wordLength = word.length();
               for (int i = 0; i < wordLength; i++)
                     newLetter = alpha.charAt(i + key);
                     if (newLetter > alpha.length())
                         newLetter =alpha.charAt((i + key) - 25);
                         return newLetter;
}

Most of those question will have to be answered by your O2 UK customer service, as they will know their data plans.
But for the BlackBerry, you will need a BlackBerry specific data plan.
Just a generic internet access plan usually will not suffice.
So when you speak to them, make sure you get specific BlackBerry data plan information, add-on or bolt-on or whatever the call it.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4   Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA   Display/Scan Bar Code

Similar Messages

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • I live in NZ and just downloaded firefox because this other program i need to download requires me to have firefox3 but when i click on the other program to download its not downloading so why is that.

    I live in NZ and just downloaded firefox which was successful because this other program i need to download requires firefox3 so when i clicked on this program to download now that i have firefox its not downloading so why is that.

    Yes, you need the latest version of Flash to work with Mavericks and Safari 7.x. I'm not sure why you can't view some of the videos on YouTube but not all and I don't know which, YouTube or Safari, is suggesting a 10.xxxx version.
    Can you copy and paste the specific URL of a video that you're having problems viewing? Then I could take a look on my end and see if I notice anything funny.
    Call back...
    Clinton

  • I bought illustrator 4 days ago. I didn't get a serial number but in order to access the program i need one?

    i bought illustrator 4 days ago. I didn't get a serial number but in order to access the program i need one?

    Sarah,
    Presuming CS6 purchased (as perpetual licence), you should ask Adobe (or the independent seller) for it.
    Have you registered it?
    You may try to contact Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    or Adobe Support (phone),
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html

  • When I'm installing iTunes, it says I'm missing a program that the installer is attempting to run, but it's not telling me which program it needs. The installer is able to run through about most of the install, but near the end, this error kills it, help?

    Well basically like it says in the question, when the installer runs through to what I assume is near 90% completion, an error message pops up saying that the installer is unable to find/run a program it needs, and as helpful as it is, the installer neglects to tell me what program I need to download/install for the iTunes installer to complete, as it is, I am at a total loss for how to resolve the issue, I couldn't find anything about this on FAQ's, but if it's there, please let me know; however, I'm welcoming all advice, thank you.

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Hi! I've just installed mountain lion and I find one of the programs I need for my work is crashing all the time. any ideas what i can do?

    hi! I've just installed mountain lion and I find one of the programs I need for my work is crashing all the time. any ideas what i can do?

    Ah!
    Factuur Bright x
    part of errors:
    Process:         Factuur Bright X [1476]
    Path:            /Applications/Factuur Bright X/Factuur Bright X.app/Contents/MacOS/Factuur Bright X
    Identifier:      ???
    Version:         ??? (2.0.0b20)
    Code Type:       X86 (Native)
    Parent Process:  launchd [184]
    User ID:         501
    Date/Time:       2013-07-10 22:35:39.180 +0200
    OS Version:      Mac OS X 10.8.4 (12E55)
    Report Version:  10
    Interval Since Last Report:          2118 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  24 sec
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                      47D641A2-4625-7590-369C-8BAFE1439551
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010

  • The credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be.

    the credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be??

    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • Need a help / advice & guidance whether to switch on my Career in SAP-PM from core industries after spending my 09 years of experience in Core field that to in Maintenance.

    Hello Adviser /expert,
    Need a help / advice & guidance whether to switch on my Career in SAP-PM from core industries after spending my 09 years of experience in Core field that to in Maintenance.
    As now i m thinking to do SAP-PM certified course from authorized SAP partner in India that to Pune.
    So any one can suggest authorized SAP partner in India that to Pune.
    My introduction (About myself): - I had done my Diploma in Mechanical and had total 09 years of experience in Mechanical Maintenance field that to in different manufacturing company such as Steel, Auto Ancillary & Cotton plant.
    Whether its right decision to change my career from Core sector to SAP-PM..??
    Is there very good scope in SAP-Pm for me after 09 years of Core Maintenance field..???
    Guide me
    Warm Regard
    Ravin

    Ravindra,
    SAP PM is very niche Module, very in demand module, at the same time, being niche, getting into it and getting 1 implementation is also difficult.
    your decision of joining SAP authorized training is the best option, as a certified consultant, you have more chances to get a break as fresher and you can continue working on it, else it would waste of your intellectual energy.
    you just search sap.com training or email them or chat with them, they will give u the training center details,
    but very less training classes are available. Try you will get lucky soon

  • HT4623 I want to use a program that needs Adobe Flash and I'M then told this device, iPad, can't use Adobe.  What does it use instead?

    I want to use a program that needs Adobe Flash and I'm then told Adobe Flash cannot be used with my iPad.
    What do,I use instead go Adobe Flash?

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • I accidentally deleted the responses on my form colum D U12 program, I need those response back

    I accidentally deleted the responses on my form colum D U12 program, I need those response added back to my formcentral form

    Hi;
    You can copy all of the rows of data from the last point in History where they existed in the View Responses table and paste them all into the current point in time at once, you do not have to do that response by response.  You do not have to do this one at a time.
    1) Go to the View Responses tab
    2) Click the History button (clock icon near bottom right)
    3) Click on previous points in history and locate the best source for the responses that were deleted
    4) Select all rows that were deleted and are missing from current time
    Crtl+C to copy (Cmd+C on Mac)
    6) Go to the most recent point in History now
    7a) If you need to simply put the data back into existing rows that were just empty, the data had been deleted but not the rows click into the first cell (time submitted) and click Crtl+V (Cmd+V on Mac)
    If you are not able to do that let me know and I can work futher with you on it.
    7b) If you need these at the bottom of some existing/new responses simply click "Add Row" to add a new row to the bottom, click in the first cell and use Crtl+V to paste (Cmd+V on Mac)
    7c) If you need to insert the rows in between existing rows use the "+" sign in between the rows you need the data inserted - repeat enough times to add the same number of rows you copied and then click in the first cell and use Crtl+V to paste (Cmd+V on Mac)
    Let me know if you need further assistance.
    Thanks,
    Josh

  • I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

    I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

        monkeybuttqueen,
    Thank you so much for reaching out to us today. I hope you are enjoying the new device! I do apologize that you didn't get the proper info sent to you to send back your old device. You can always print a label online from My Verizon. You can do that at www.verizonwireless.com/printlabel Pleaes keep us posted if you have any questions or concerns.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Im trying to create this program but I'm a little stuck

    Hey guys I'm trying to create this program but I'm a little bit stuck. Thanks for the help. Im trying to create a program that prompts the user for a string, then it takes the string adds 2 to the unicode value, and returns that as the output so for example:
    hello there
    turns into
    jgnnq vjgtg
    Thanks for your help

    Hey guys I'm trying to create this program but I'm a
    little bit stuck. Thanks for the help. Im trying to
    create a program that prompts the user for a string,
    then it takes the string adds 2 to the unicode value,
    and returns that as the output so for example:
    hello there
    turns into
    jgnnq vjgtg
    Thanks for your helpYou didn't add 2 to the space character, so is that to be treated special?
    Anyway, you have a String. That String has a length() to tell you how long of a loop you have to do. That String also has a charAt(index) method to give you a character while you're looping thru it. And I assume you know how to add 2 to a character value, and append that character to a new String or StringBuilder or StringBuffer until you're done with the loop.

  • (Click and move to next scene).  Need help with a simple action, just need a little guidance.

    I am building a simple flash movie clip in Flash cs4. All I want to do is run the play head through a one 5 frame scene and stop, and then you press a button that will send the play head to the next 10 frame motion tween scene.
    When I run the movie all I get is a movie clip that pauses for a millisecond then loops back around.
    I have three different books on flash action script, read all three still not doing so hot. I am using the navigational button concept maybe that is what I am doing wrong. Can someone show me the right method or lead me in the right direction.
    farosgfx ( [email protected] )

    You can just place an invisible button on the top layer of
    the flash time line and code it to getURL. When you said "hyperlink
    to another page", are you referring to an html page or another swf
    file? To make an invisible button in Flash, you can hit Ctrl+F8 to
    bring up the dialog box to create a new symbol, name your button,
    make sure you select the type of button, hit ok, now you are inside
    the button and need to create a "hit" area. Click on the "hit"
    state and press F7 to create a blank key frame. Using the drawing
    tools, select the square, no stroke, and any fill color you want,
    draw a square shape, click on the shape and in your Info Panel,
    change the size of this shape to match the size of your stage,
    lastly, make sure the registration point is (0,0) by using the
    Align Panel. Go back to your main time line, add a layer on your
    time line and make sure it's at the top, drag your new button from
    the library to the stage and align it to (0,0).
    There are two ways to code the button, so to make it easier,
    click on the button once to select it, hit F9 to bring up the
    actions panel and type this
    on(release){
    getURL("
    http://www.someWebsite.com",
    "_blank");// you can also use "_self" //
    If some of this isn't new to you, disregard parts of it. If
    you have any buttons in your Flash application, this will cause
    problems because the invisible button will counter-act anything
    below it. Let me know if this works for you. Of course, this all
    assumes you have access to the flash file.

  • Irregular TNS -12535 , did some diagnosis and now need a little guidance

    Hey Guys,
    I tried searching and searching for this error, tried a couple of different things but right now I am stuck. I must first say that this forum is very helpful so thank you for everyone who contributes and answers the questions.
    Here i go
    This is the error message I am randomly getting :
    Fatal NI connect error 12170.
    VERSION INFORMATION:
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
    Time: 05-JUL-2011 21:20:09
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 78
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.66.6.89)(PORT=1526))
    What i have done is on the server machine (database 2) within the listener.ora set INBOUND_CONNECT_TIMEOUT_LISTENER=0
    I also setup a sqlnet.ora file within $ORACLE_HOME/network/admin with the parameters
    DIAG_ADR_ENABLED =OFF
    SQLNET.INBOUND_CONNECT_TIMEOUT=0
    in the client machine(database 1) i have the same as above within the listener.ora set INBOUND_CONNECT_TIMEOUT_LISTENER=0
    I also setup a sqlnet.ora file within $ORACLE_HOME/network/admin with the parameters
    DIAG_ADR_ENABLED =OFF
    SQLNET.INBOUND_CONNECT_TIMEOUT=0
    Also within the tnsnames.ora files i have put (SERVER=DEDICATED) (just to be on the safe side)
    I thought with this there should not be a tns error at all..yet i am getting them daily at random times.
    I tried to talk to networking but lets just say I need to proof it somehow that its there issue not mine.
    Thanks in advance for your help

    867954 wrote:
    os info AIX 5.3
    thanks for your prompt reply..i did
    man ping
    the command i used was
    tnsping oisa1 2000
    but im assuming thats only for 2000 pings...how can i do infinite pings?
    what im doing is tnsping ois1 2000 >pingtest.txt how can i add a timestamp into that log?
    i apologize for the newbie questions...while 1 = 2
    do
    tnsping ois1 2000 >>pingtest.txt
    date >> pingtest.txt
    done

Maybe you are looking for