Results 1 to 3 of 3
  1. #1
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default The new euro to dollar, and dollar to euro converter i made.

    Java Code:
    import java.util.Scanner;
    
    class Eurodollar {
    	public static void main(String args []){
    		Scanner input = new Scanner (System.in);
    		System.out.println("press 1 for Euro > Dollar \t press 2 for Dollar > Euro");
    		int amount;
    		String eurodollar = input.nextLine();
    		switch(eurodollar){
    		case "1":
    		System.out.println("You chose for: Euro > Dollar ");	
    		System.out.println("\n");
    		System.out.println("Enter the amount: ");
    	    {
    		amount = input.nextInt();
    		System.out.println("Euro"+"\t"+"Dollar");
    		System.out.println(amount+ "\t" +(amount *  0.767636447));
    		}
    		break;
    		case "2":
    			System.out.println("You chose for: Dollar > Euro ");
    			System.out.println("\n");
    			System.out.println("Enter the amount: ");
    			amount = input.nextInt();
    			System.out.println("Dollar"+"\t"+"Euro");{
    			System.out.println(amount+ "\t" +(amount / 0.767636447));
    			
    			
    		
    			
    	
    		
    		}
    		}
    	}
    }

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    929
    Rep Power
    2

    Default Re: The new euro to dollar, and dollar to euro converter i made.


  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,362
    Blog Entries
    7
    Rep Power
    20

    Default Re: The new euro to dollar, and dollar to euro converter i made.

    Quote Originally Posted by SurfMan View Post
    Yup, I'm closing this duplicate thread.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 03-15-2013, 01:47 PM
  2. euro converter to dollars
    By JMAsterson in forum New To Java
    Replies: 12
    Last Post: 04-05-2012, 07:36 PM
  3. Dollar sign and DecimalFormat
    By javauserjava in forum New To Java
    Replies: 7
    Last Post: 04-05-2011, 11:57 PM
  4. Dollar sign in a while statement
    By oneprotect in forum Advanced Java
    Replies: 3
    Last Post: 01-18-2011, 11:01 AM
  5. Error euro sign on oracle database
    By ct2marer in forum JDBC
    Replies: 0
    Last Post: 10-26-2009, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •