Simple encryption... need help...

hello friends,
this may be a simple problem, but, as i m new plz forgive me...
i have to accept three command line agrumetns like...
name ---> string
age ---> integer
date ---> string
now, i want to encrypt these data in a two different text files with two different encryption methods...
and later i need to decrypt the data from both the textfiles...
can anyone help me how can i achieve this task ???
Thanks,
Rohan

hi arshad,
thanks for the guidence...
i just needed the proper direction... not the code...
Thanks again...
i went through some books and tried a sample code from a book...
here is the code...
package des;
import java.io.*;
import java.security.*;
import javax.crypto.*;
import sun.misc.*;
* @author Rohan.Nakar
public class SecretWriting
     public static void main(String[] args) throws Exception
          //checking argumetns
          if(args.length < 2)
               System.out.println("Usage: SecureWriting -e | -d plainText");
               return;
          //get or create key
          Key key;
          try
               ObjectInputStream in = new ObjectInputStream( new FileInputStream("SecretKey.ser"));
               key = (Key)in.readObject();
               in.close();
          catch (FileNotFoundException fnfe)
               KeyGenerator generator = KeyGenerator.getInstance("DES");
               generator.init(new SecureRandom());
               key = generator.generateKey();
               ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream("SecretKey.ser"));
               out.writeObject(key);
               out.close();
          //get a cipher object
          Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
          //Encrypt or decrypt the input string
          if (args[0].indexOf("e") != -1)
               cipher.init(Cipher.ENCRYPT_MODE, key);
               String amalgam = args[1];
               for(int i = 2; i < args.length; i++)
                    amalgam += " " + args;
               byte[] stringBytes = amalgam.getBytes("UTF8");
               byte[] raw = cipher.doFinal(stringBytes);
               BASE64Encoder encoder = new BASE64Encoder();
               String base64 = encoder.encode(raw);
               System.out.println(base64);
          else if (args[0].indexOf("d") != -1)
               cipher.init(Cipher.DECRYPT_MODE, key);
               BASE64Decoder decoder = new BASE64Decoder();
               byte[] raw = decoder.decodeBuffer(args[1]);
               byte[] stringBytes = cipher.doFinal(raw);
               String result = new String(stringBytes, "UTF8");
               System.out.println(result);
this is giving me an exception...
java.security.NoSuchAlgorithmException: Algorithm DES not available
     at javax.crypto.SunJCE_b.a(DashoA6275)
     at javax.crypto.KeyGenerator.getInstance(DashoA6275)
     at des.SecretWriting.main(SecretWriting.java:40)
Exception in thread "main"
any help...
Thanks in advance...

Similar Messages

  • I am un able to send mail as it gets stuck in my outbox. I am sure the solution is simple but need help?

    I am un able to send mail as it gets stuck in my outbox. This is a recent phenomena. I am sure the solution is simple but need help?

    I looked everywhere for a solution - and I finally figured it out! Deleting my accounts didn't work, but here is what worked. This worked when my Gmail accounts were not sending properly. I'm not sure if it works for other e-mail services.
    1. While in Mac Mail, click "Mail" in the top left corner of the screen
    2. Click "Preferences"
    3. Click "Accounts"
    4. Select your account that isn't sending properly
    5. In "Outgoing Mail Server (SMTP)" there will be two options - Gmail & Gmail (offline)
    Make sure that "Gmail" is selected and NOT "Gmail (offline)"
    If you navigate to another section in Preferences, it will ask you to SAVE - make sure you save your changes!
    It worked for me, hope it works for you!

  • Very Simple Problem-- Need help in method selection process

    Hello,
    It's difficult to explain the background of the program I am making-- but I am stuck at a very simple problem, that I can only solve with a very long block of if statements:
    I have 3 possible numbers-- 1, 2, or 3.
    Imagine two numbers are already taken-- say 1 and 2. I want a variable to set itself to the number that's not taken (3).
    So, again: If two numbers were taken say 2 or 3-- I want the variable to be sent to the other one that isn't taken-- 1.
    Thank you for your help,
    Evan.

    Actually, I'll just tell you the context of the program-- here is what I have so far:
    This program is meant to simulate Monty Hall Problem:
    http://en.wikipedia.org/wiki/Monty_Hall_problem
    The program sets up an array of three possible values. Each one of those values represents a door with either a goat or a car behind it. It then randomly sets one of those values to 1 (in order to represent a car as per the Monty Hall problem), and 0's represent goats.
    The user, which is simulated by the program (does not involve actual interaction), chooses a door initially.
    The game show hosts then reveals a door that is not the users initial choice, but IS a goat ( an array value of 0).
    For example if the array was [0][0][1]
    The user could pick door one (array position 0). Which is a goat.
    The game show host then reveals a goat that is not the users choice-- which would be array position 1.
    After the game show host reveals the goat-- I want the user to always switch his decision to the only other remaining door that was not his first choice.
    Then I wanted the computer to test to see if his final choice is the one with a car. And to tally up the amount of times he got it right.
    --Sorry that was long winded:
    import TerminalIO.*;//imports TerminalIO package for system.out.println
    import java.util.*;//import java.util for random
    public class Monty_Problem
         int doors[]= {0,0,0};
         Random rand= new Random();
         double wins,totals=0;
         public void carAssignment()
              int car_door= rand.nextInt(3);
              doors[car_door]=1;
         public int judgesChoice(int judgeDoor, int initialChoice)
              if(judgeDoor != initialChoice && doors[judgeDoor]!=1)
                   return judgeDoor;
              else
                   return judgesChoice(rand.nextInt(3), initialChoice); //infinite loop right here that I cannot remedy.  I want the program to have the judge pick a location that is not occupied by a  '1' and is not the user's choice. 
         public void gamePlaySwitches()
              int initialChoice= rand.nextInt(3);
              int judgeDoor = 0;
              int secondChoice= 0;
              judgeDoor= judgesChoice(rand.nextInt(3), initialChoice);
              //This part is meant to have the user switch choices from his initial choice
                   // to the only other choice that hasn't been revealed by the judge. 
              while(secondChoice == initialChoice || secondChoice== judgeDoor)
                   secondChoice++;
              if(doors[secondChoice]==1)
                   wins++;
                   totals++;
              else
                   totals++;          
         public static void main(String [] args)//creates the main menu
              Monty_Problem a= new Monty_Problem();
              int games=0;
              while(games!=100)
                        a.carAssignment();
                        a.gamePlaySwitches();
                        games++;
              System.out.println(a.wins/a.totals);
    }Edited by: EvanD on Jan 11, 2008 4:17 PM

  • Simple xml ( need help)

    Hi,
    i have spent hours in it but i am not a programmer thats the
    problem, sometime i can play with attribute kind of xml, i have
    trying to play with it but didn't get any success
    I have a xml file
    which looks something like this
    [textData]
    [title] your title [/title]
    [content] your content [/content]
    [/textData]
    now i want to put another node into so my xml should be
    something like this
    [textData]
    [title] your title [/title]
    [content] your content [/content]
    [content2] your content [/content2]
    [/textData]
    but its not showing up.. i don't know how to access it by
    flash.
    title and content text are showing up but not my new content2
    which i created by myself
    Here is the flash code
    textTitle_txt.text =
    textData.firstChild.firstChild.firstChild;
    scrollContent.content_txt.autoSize = true;
    scrollContent.content_txt.html = true;
    scrollContent.content_txt.htmlText =
    textData.firstChild.childNodes[1];
    how can i access to [content2] your content [/content]
    any help would be really appriciated.
    thanks
    akdesigns

    I think you probably have some malformed xml inside your
    first content tag (perhaps its not like your example and has html
    tags in it?). In any case a better way to set things up for
    htmlText inside xml is to use CDATA nodes. Run the code below in
    flash and see if the output makes sense. Change things a few times
    and see what happens. Its easier to show CDATA than explain
    it...(basically its a string of characters that flash does not
    interpret as xml) but all you need to do is set it up so it looks
    like this and that you access the CDATA content in the same
    way.

  • Should be simple but need help!

    Hi there,
    I'm new to AS3, and I'm trying to make a navigation menu. When you roll the mouse over a section, the colour changes to red. I've got this working for the first word, however there are more that need to be added. I have other menu items that I was the exact same thing to happen to, those being tracks_bg, drivers_bg etc. Here's my code that works fine:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    about_bg.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
    about_bg.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
    function manageMouseOver(event:MouseEvent):void{
      //your over code here
        var color_transform:ColorTransform=about_bg.transform.colorTransform;
    color_transform.color=0xbf3a3a;
    about_bg.transform.colorTransform=color_transform;
        var fadeIn:Tween = new Tween(about_bg, "alpha", Strong.easeOut,0,1,1,true);
    function manageMouseOut(event:MouseEvent):void{
      //your out code here
        var color_transform:ColorTransform=about_bg.transform.colorTransform;
    color_transform.color=0xffffff;
    about_bg.transform.colorTransform=color_transform;
        var fadeOut:Tween = new Tween(about_bg, "alpha", Strong.easeOut,1,0,1,true);
    I thought it would be okay to add more event listeners below about_bg, then copy the functions the functions and change the about_bg words to tracks_bg etc. This doesn't work
    Here is what I was trying to do:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    about_bg.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
    about_bg.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
    tracks_bg.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
    tracks_bg.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
    function manageMouseOver(event:MouseEvent):void{
         var color_transform:ColorTransform=about_bg.transform.colorTransform;
    color_transform.color=0xbf3a3a;
    about_bg.transform.colorTransform=color_transform;
        var fadeIn:Tween = new Tween(about_bg, "alpha", Strong.easeOut,0,1,1,true);
    function manageMouseOut(event:MouseEvent):void{
        var color_transform:ColorTransform=about_bg.transform.colorTransform;
    color_transform.color=0xffffff;
    about_bg.transform.colorTransform=color_transform;
        var fadeOut:Tween = new Tween(about_bg, "alpha", Strong.easeOut,1,0,1,true);
    function manageMouseOver(event:MouseEvent):void{
        var color_transform:ColorTransform=tracks_bg.transform.colorTransform;
    color_transform.color=0xbf3a3a;
    tracks_bg.transform.colorTransform=color_transform;
        var fadeIn:Tween = new Tween(tracks_bg, "alpha", Strong.easeOut,0,1,1,true);
    function manageMouseOut(event:MouseEvent):void{
        var color_transform:ColorTransform=tracks_bg.transform.colorTransform;
    color_transform.color=0xffffff;
    tracks_bg.transform.colorTransform=color_transform;
        var fadeOut:Tween = new Tween(tracks_bg, "alpha", Strong.easeOut,1,0,1,true);
    You get the idea. Its long winded and doesn't work anyway. What do I do here? Thanks in advance for any help...

    Hey,
    Thanks for the answer. I've replaced my code with that and changed it to 'SimpleButton' rather than MovieClip and it works exactly as before. However, I'm still unsure of where to add the buttons. I'm using a master AS layer and not going in them individually.
    Here's what I've got now:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    about_bg.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
    about_bg.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
    function manageMouseOver(event:MouseEvent):void
         var btn:SimpleButton = event.target as SimpleButton; //just assume that it is a MovieClip, change to whatever it is i.e. Button
         var color_transform:ColorTransform=btn.transform.colorTransform;
         color_transform.color=0xbf3a3a;
         btn.transform.colorTransform=color_transform;
         var fadeIn:Tween = new Tween(btn, "alpha", Strong.easeOut,0,1,1,true);
    function manageMouseOut(event:MouseEvent):void
         var btn:SimpleButton = event.target as SimpleButton; //just assume that it is a MovieClip, change to whatever it is i.e. Button
         var color_transform:ColorTransform=btn.transform.colorTransform;
         color_transform.color=0xffffff;
         btn.transform.colorTransform=color_transform;
        var fadeOut:Tween = new Tween(btn, "alpha", Strong.easeOut,1,0,1,true);
    I tried adding: tracks_bg.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
                        tracks_bg.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
    ^ Below the about event listener lines and it says its an undefined property. Sorry, I'm a noob with this

  • Simple Encryption Code help. Why this error?

    Why does the implements Command pharse error this program out
    I am a beginner here so please take it easy. I know it's probably a stupid mistake.
    Also how would I limit the ASCII character conversion to be between 32 and 126.
    public class Caesar {
    implements Command //This line errors out the entire code
    // Inv: true
    private int shift;
    public Caesar(int shift)
    this.shift = shift;
    public String encrypt(String text)
    return shiftCharacterValues(text, shift);
    public String decrypt(String text)
    return shiftCharacterValues(text, -shift);
    private String shiftCharacterValues(String text, int shift)
    StringBuffer encrypted;
    encrypted = new StringBuffer(text);
    for (int i = 0; i < encrypted.length(); i++)
    encrypted.setCharAt(i, (char)(encrypted.charAt(i) + shift));
    return encrypted.toString();
    public static void main(String[] args)
    Caesar caesar;
    String original, encrypted, decrypted;
    caesar = new Caesar(7);
    original = "hello"'
    encrypted = caesar.encrypt(original);
    decrypted = caesar.decrypt(encrypted);
    System.out.println("Original = " + original);
    System.out.println("Encrypted = " + encrypted);
    System.out.println("Decrypted = " + decrypted);
    }

    might be?
    public class Caesar {
      private int shift;
      public Caesar(int shift) {
        this.shift = shift;
      public String encrypt(String text) {
        return shiftCharacterValues(text, shift);
      public String decrypt(String text) {
        return shiftCharacterValues(text, -shift);
      private String shiftCharacterValues(String text, int shift) {
        StringBuffer encrypted;
        encrypted = new StringBuffer(text);
        for (int i = 0; i < encrypted.length(); i++)
             encrypted.setCharAt(i, (char)(encrypted.charAt(i) + shift > 126 ? (encrypted.charAt(i) + shift -95) : (encrypted.charAt(i)+shift < 32 ? (encrypted.charAt(i) + shift + 95) : encrypted.charAt(i) + shift)));
        return encrypted.toString();
      public static void main(String[] args) {
        Caesar caesar;
        String original, encrypted, decrypted;
        caesar = new Caesar(-7);
        original = " hello";
        encrypted = caesar.encrypt(original);
        decrypted = caesar.decrypt(encrypted);
        System.out.println("Original = " + original);
        System.out.println("Encrypted = " + encrypted);
        System.out.println("Decrypted = " + decrypted);
    }

  • Probably simple but need help~

    My macbook wont let me log in. A message appears saying disk space full but i cant log on to delete anything. The spinning circle appears, screen goes white, then tells me to re enter my password. I want in on my computer!

    You need to move or delete some stuff. Boot into single user mode to at least get access.
    http://support.apple.com/kb/ht1492

  • Simple but need help

    hw can i display a page r content in the same page by clicking a href link ???
    Thanks in advance

    You can use RequestDispatcher.Include() method,
    Or you can try with the latest scripting tachnique AJAX for this.
    AJAX has the ability to put/modify contents in parts of the page even with out changing the url(that is in the same page itsely)
    Regards......

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Need help making a simple script for my webcam

    Hey everyone, fairly new to applescript programming. I just bought a usb camera for my macbook because I use it for video conferencing/playing around, and it is better quality than the built in isight. However, in order to use this camera I need to use drivers from a program called camTwist. This being said camTwist needs to be opened first and the usb camera must be selected from camTwist Step 1 list in order for any other application to use the camera. I just want to make a simple program that would open camTwist first, then select "webcam" from the list (double click it like I always have to in order to select it) in order to activate the driver, and then open photo booth which would then be using the camTwist driver in order to take pictures.
    I made a crude program but it does not automatically select "webcam" from the Step 1 list in camTwist:
    tell application "CamTwist" to activate
    delay 10
    tell application "Photo Booth" to activate
    that’s basically it. I set the delay to 10 seconds so that when camTwists boots up first I can manually select my webcam. HOWEVER, I would like to make a script that would boot up CamTwist first, select my webcam from the list automatically, and then open Photo Booth with the CamTwist webcam driver already selected.
    Don't know much about applescript so any help to make a working script to solve my problem would be greatly appreciated! Thanks!

    Solved my problem but now I need help with something else! First I used CamTwist user options to create user defined hot keys with the specific purpose to load the webcam. I chose Command+B. I tested it out in CamTwist and it worked. The program follows a logical order from there. First it loads CamTwist, then after a short delay it presses the hot keys in order to load the webcam from the video source list, then another short delay and Photo Booth is opened with the driver loaded from camTwist. Everything works Perfect! Here's the code:
    tell application "System Events"
    tell application "CamTwist" to activate
    delay 0.5
    --Press command+b which is a user defined hot key to load webcam
    key code 11 using command down
    end tell
    delay 0.5
    tell application "Photo Booth" to activate
    My Next question is, would it be possible with this same script to have both applications quit together. For example I always quit Photo Booth first, so when I quit photo booth is there a way to make CamTwist also quit and keep everything within the same script? Please let me know. This forum has been very helpful and lead me to a solution to my problem! Hoping I can solve this next problem as well! Thanks everyone.

  • Need help with a simple basketball game.

    Hi im new here and I need help with making this simple basketball game.
    Im trying to recreate this game from this video. Im not sure if he is using as2 or as3
    Or if anyone could help me make a game like this or direct me to a link on how to do it It would be greatly appreciated.

    If you couldn't tell whether it is AS2 or AS3, it is doubtful you can turn it from AS2 into AS3, at least not until you learn both languages.  There is no tool made that does it for you.

  • Need help with a simple program (should be simple anyway)

    I'm (starting to begin) writing a nice simple program that should be easy however I'm stuck on how to make the "New" button in the file menu clear all the fields. Any help? I'll attach the code below.
    ====================================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Message extends JFrame implements ActionListener {
         public void actionPerformed(ActionEvent evt) {
         text1.setText(" ");
         text2.setText("RE: ");
         text3.setText(" ");
         public Message() {
         super("Write a Message - by Kieran Hannigan");
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setSize(370,270);
         FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
         setLayout(flo);
         //Make the bar
         JMenuBar bar = new JMenuBar();
         //Make "File" on Menu
         JMenu File = new JMenu("File");
         JMenuItem f1 = new JMenuItem("New");f1.addActionListener(this);
         JMenuItem f2 = new JMenuItem("Open");
         JMenuItem f3 = new JMenuItem("Save");
         JMenuItem f4 = new JMenuItem("Save As");
         JMenuItem f5 = new JMenuItem("Exit");
         File.add(f1);
         File.add(f2);
         File.add(f3);
         File.add(f4);
         File.add(f5);
         bar.add(File);
         //Make "Edit" on menu
         JMenu Edit = new JMenu("Edit");
         JMenuItem e1 = new JMenuItem("Cut");
         JMenuItem e2 = new JMenuItem("Paste");
         JMenuItem e3 = new JMenuItem("Copy");
         JMenuItem e4 = new JMenuItem("Repeat");
         JMenuItem e5 = new JMenuItem("Undo");
         Edit.add(e5);
         Edit.add(e4);
         Edit.add(e1);
         Edit.add(e3);
         Edit.add(e2);
         bar.add(Edit);
         //Make "View" on menu
         JMenu View = new JMenu("View");
         JMenuItem v1 = new JMenuItem("Bold");
         JMenuItem v2 = new JMenuItem("Italic");
         JMenuItem v3 = new JMenuItem("Normal");
         JMenuItem v4 = new JMenuItem("Bold-Italic");
         View.add(v1);
         View.add(v2);
         View.add(v3);
         View.addSeparator();
         View.add(v4);
         bar.add(View);
         //Make "Help" on menu
         JMenu Help = new JMenu("Help");
         JMenuItem h1 = new JMenuItem("Help Online");
         JMenuItem h2 = new JMenuItem("E-mail Programmer");
         Help.add(h1);
         Help.add(h2);
         bar.add(Help);
         setJMenuBar(bar);
         //Make Contents of window.
         //Make "Subject" text field
         JPanel row2 = new JPanel();
         JLabel sublabel = new JLabel("Subject:");
         row2.add(sublabel);
         JTextField text2 = new JTextField("RE:",24);
         row2.add(text2);
         //Make "To" text field
         JPanel row1 = new JPanel();
         JLabel tolabel = new JLabel("To:");
         row1.add(tolabel);
         JTextField text1 = new JTextField(24);
         row1.add(text1);
         //Make "Message" text area
         JPanel row3 = new JPanel();
         JLabel Meslabel = new JLabel("Message:");
         row3.add(Meslabel);
         JTextArea text3 = new JTextArea(6,22);
         messagearea.setLineWrap(true);
         messagearea.setWrapStyleWord(true);
         JScrollPane scroll = new JScrollPane(text3,
                                  JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                  JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         //SpaceLine
         JPanel spaceline = new JPanel();
         JLabel spacer = new JLabel(" ");
         spaceline.add(spacer);
         row3.add(scroll);
         add(row1);
         add(row2);
         add(spaceline);
         add(spaceline);
         add(row3);
         setVisible(true);
         public static void main(String[] arguments) {
         Message Message = new Message();
    }

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • HT1212 I cannot remember my passcode and need help to change/reset my passcode.  I need this information in simple terms.  I have attempted to follow the instructions above without success

    I cannot remember my passcode and need help to change/reset my passcode.  I have tried to reset using the instructions on the website without success.  Please explain to me in simple easy terms how to access my ipod.  Thanks

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iPod will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up    
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    
    You can also Google for YouTube videos that show how to do it

  • I need HELP!  I have an encrypted cd in my drive

    I need HELP!  I have an encrypted cd in my drive and wasn't able to open it. I have the password but it never got that far. I tried to open it with Preview and then the computer made noise and the help icon disappeared from the cd window. Where did it go?

    Eject the disk with the following command in the Terminal application:
    drutil eject
    OT

  • Need Help regarding a simple mobile application

    Hello friends,
    I am bit newbee to J2ME technology.
    I have basic understanding about MIDLETS.
    Friends,i am designing an instant messenger using midlet.
    Could anyone send some idea's of how to design a CHAT application.IF some one can give a small code of implementing it could be really helpful....
    Looking for your help!!!
    Thanks In Advance !!!
    Regards,
    RAHUL

    You have been no help but I will post again hoping someone else can reply....
    Here is a more exact detailing of what I am trying to do:
    I am hosting a text file here:
    http://www.geocities.com/biocx/entertainer.txt
    And when I open up MMAPI Demo and go to simple player, and then URL and paste this in, it plays the simple rtttl/midi file. It is doing this through RingToneConverter.
    Now all I want to do, and this is the part I need help with, is while it is playing, I want the notes to be displayed on screen. Can anyone help me with this! I have tried and every time is gives me a problem saying that the RingToneConverter Class isn't abstract and I cannot print to screen...
    If someone could help me with this, it would be greatly appreciated.
    Thank you,
    Mike

  • Need help encrypting, etc - New Wireless User

    I need help encrypting my network, I notice there are 5 wireless networks within range and they are all secure except mine.  I also wonder why my signal is just "fair" .. I don't really understand this whole wireless thing, so any help anyone could give me would be appreciated.

    First and foremost... what is the exact model number of your wireless device?
    Anyway, let's use a hardwired PC to configure everything. On the hardwired PC, open up IE and on the address bar type in 192.168.1.1 (username just leave it blank, password as a default is admin)...
    Go the wireless tab do these steps:
    ► change the SSID (that will be the name of your wireless network... use any name you would want to use)...
    ► for proper signal propagation choose channel 11
    Then to secure your network:
    ► go the wireless security subtab
    ► choose WPA personal
    ► input on the shared key box your desired wireless password (should be at least 8 characters long)....

Maybe you are looking for

  • Regarding Renaming INDEX Partitions

    Hi All, I have the following syntax for renaming table partitions/subpartitions : ALTER TABLE SMTP_MSG_TRAFFIC_FCT RENAME PARTITION FOR (20100310) TO BASE_FACT_20100310; ALTER TABLE SMTP_MSG_TRAFFIC_FCT RENAME SUBPARTITION FOR (20100310,19) TO BASE_F

  • Tax Calculation

    I am having an issue with Tax amount calculations. If the 'TxN' Indicator is checked in the Tax jurisdiction config - which means the Discount amount be deducted from the Invoice amount to determine the Tax base amount for calculation of Tax amount.

  • Xbox 360 and WRT54G

    I think I've reached a solution to the issues that I've had w/my Xbox network settings and the console not finding an IP address via the WRT54G v.6. After hours and hours of trying all the suggestions that I've read on this forum I've decided to take

  • User settings not syncing in Premiere Pro CC

    Searched around the forum and the rest of the web for help, couldn't quite find anything. My company just hired another videographer/editor and so I got upgraded from the old Production Premium 5.5 to CS CC so we'd be running the same version. My pro

  • How to insert data into two tables at once using XSJS

    Hello Experts, My requirement is to insert data into two tables at once. I have a XS JS app and want to update these tables via xsjs. How can I do this ? Is there any mechanism like sql 'transactions' also in Hana ? If yes, how can I call it via xsjs