Double addition

I try to do the following, where a and b are Doubles:
String c = "1000.00";
a = (b + Double.valueOf(c));
And i get this error:
operator + cannot be applied to java.lang.Double,java.lang.Double
Please help me I can't find the info on java.sun.com
Thanks,
Mike

Double.valueOf() returns a Double, not a double. Java does not support adding of Doubles, only doubles. Instead, use Double.parseDouble() which returns a double.

Similar Messages

  • Question about multiple devices on the same Apple ID

    I am currently an iPhone 4S user and have one Apple ID.
    I intend to buy the new iPad soon and share the same Apple ID so that I do not need to keep switching accounts. However I have a question.
    If I use both devices for iMessage, and if a friend of mine sends me an iMessage, will it appear on both devices? Or just the iPhone/iPad alone?
    Also if I backup the data using my iTunes account to the new iPad, will I still use the same iCloud (5GB) or will I be given double (additional 5 on the tablet)?
    Thanks.

    You could do as my wife and I do. We share an Apple ID for iTunes (we have 3 IDs. One for her, one for me, and one for purchases. You can do this with 2. One for you and purchases, one for your brother). Log into everything on your iPhone with your Apple ID. Log into only iTunes/App Store/iBook Store on the iPad with your Apple ID. If you want your brother to have his own iMesage ID, you can use that separately of say an iCloud login (log in to your iCloud account, but turn everything off except find my device. Then lock it with restrictions by turning off changes to location services and accounts).
    iPhone: ID 1 logged into iMessage, FaceTime, iCloud, iTunes/App Store/iBookStore
    iPad: ID 1 logged into iCloud (find my device only), iTunes/App Store/iBookStore
            ID 2 logged into iMessage, FaceTime, Mail/Contacts/Calendars

  • Why Can't I get my total to output to the text area?

    I can get the numbers to go to the text area and to clear the text area but, the only way I have figured out how to output the total is with a JOptionPane. Can someone look at my code and tell me how to fix this?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Calculator4 extends JApplet implements ActionListener
    String Nums="";
    String sNum="";
    double Num1=0;
    double Num2=0;
    double Add=0;
    double Subtract=0;
    double Multiply=0;
    double Divide=0;
    int choice=0;
    private JTextField displayField;
    private JButton Button0, Button1, Button2, Button3, Button4, Button5,
    Button6, Button7, Button8, Button9, ButtonAdd, ButtonSub,
    ButtonMult, ButtonDiv, ButtonClear, Buttontotal;
    public void init()
    Container container = getContentPane();
    container.setLayout(new FlowLayout());
    displayField = new JTextField(15);
    displayField.setEditable(false);
    container.add(displayField);
    Button1 = new JButton("1");
    Button1.addActionListener(this);
    container.add(Button1);
    Button2 = new JButton("2");
    Button2.addActionListener(this);
    container.add(Button2);
    Button3 = new JButton("3");
    Button3.addActionListener(this);
    container.add(Button3);
    ButtonAdd = new JButton("+");
    ButtonAdd.addActionListener(this);
    container.add(ButtonAdd);
    Button4 = new JButton("4");
    Button4.addActionListener(this);
    container.add(Button4);
    Button5 = new JButton("5");
    Button5.addActionListener(this);
    container.add(Button5);
    Button6 = new JButton("6");
    Button6.addActionListener(this);
    container.add(Button6);
    ButtonSub = new JButton("-");
    ButtonSub.addActionListener(this);
    container.add(ButtonSub);
    Button7 = new JButton("7");
    Button7.addActionListener(this);
    container.add(Button7);
    Button8 = new JButton("8");
    Button8.addActionListener(this);
    container.add(Button8);
    Button9 = new JButton("9");
    Button9.addActionListener(this);
    container.add(Button9);
    ButtonMult = new JButton("*");
    ButtonMult.addActionListener(this);
    container.add(ButtonMult);
    Button0 = new JButton("0");
    Button0.addActionListener(this);
    container.add(Button0);
    ButtonDiv = new JButton("/");
    ButtonDiv.addActionListener(this);
    container.add(ButtonDiv);
    ButtonClear = new JButton(" Clear ");
    ButtonClear.addActionListener(this);
    container.add(ButtonClear);
    Buttontotal = new JButton("=");
    Buttontotal.addActionListener(this);
    container.add(Buttontotal);
    public void actionPerformed(ActionEvent actionEvent)
    if(actionEvent.getSource() == Button1)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("1");}
    if(Nums!=null)
    {  Nums= Nums + 1;
    updateDisplay();}
    else if(actionEvent.getSource()==Button2)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("2");}
    if(Nums!=null)
    {  Nums= Nums + 2;
    updateDisplay();}
    else if(actionEvent.getSource()==Button3)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("3");}
    if(Nums!=null)
    {  Nums= Nums + 3;
    updateDisplay();}
    else if(actionEvent.getSource()==Button4)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("4");}
    if(Nums!=null)
    {  Nums= Nums + 4;
    updateDisplay();}
    else if(actionEvent.getSource()==Button5)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("5");}
    if(Nums!=null)
    {  Nums= Nums + 5;
    updateDisplay();}
    else if(actionEvent.getSource()==Button6)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("6");}
    if(Nums!=null)
    {  Nums= Nums + 6;
    updateDisplay();}
    else if(actionEvent.getSource()==Button7)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("7");}
    if(Nums!=null)
    {  Nums= Nums + 7;
    updateDisplay();}
    else if(actionEvent.getSource()==Button8)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("8");}
    if(Nums!=null)
    {  Nums= Nums + 8;
    updateDisplay();}
    else if(actionEvent.getSource()==Button9)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("9");}
    if(Nums!=null)
    {  Nums= Nums +9;
    updateDisplay();}
    else if(actionEvent.getSource()==Button0)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("0");}
    if(Nums!=null)
    {  Nums= Nums + 0;
    updateDisplay();}
    else if(actionEvent.getSource()==ButtonAdd)
    play(getCodeBase(),"Ping.WAV");
    choice = 1;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonSub)
    play(getCodeBase(),"Ping.WAV");
    choice = 2;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonMult)
    play(getCodeBase(),"Ping.WAV");
    choice = 3;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonDiv)
    play(getCodeBase(),"Ping.WAV");
    choice = 4;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==Buttontotal)
    play(getCodeBase(),"Ping.WAV");
    if(choice==0)
    JOptionPane.showMessageDialog(null,"Please Select Operation");
    if(choice!=0)
    switch(choice)
    case 1:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2 = Double.parseDouble(Nums);
    double Add = Addition(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Sum is: " + Add);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 2:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Subtract = Subtraction(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Difference is: " + Subtract);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 3:
    if(Nums!=null)
    {    Num1= Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Multiply = Multiplication(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Product is: " + Multiply);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 4:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Divide = Division(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Quotient is: " + Divide);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    else if(actionEvent.getSource()==ButtonClear)
    play(getCodeBase(),"Ping.WAV");
    displayField.setText("");
    Nums=null;
    sNum="";
    choice=0;
    Num1=0;
    Num2=0;
    public void updateDisplay()
    displayField.setText(Nums);
    public double Addition(double Num1, double Num2)
    return ( Num1 + Num2);
    public double Subtraction(double Num1, double Num2)
    return ( Num1 - Num2);
    public double Multiplication(double Num1, double Num2)
    return ( Num1 * Num2);
    public double Division(double Num1, double Num2)
    return ( Num1 / Num2);
    }

    You mean something like this:
    private int currentNumber =0;
    private int total = 0;
    private JTextField Display = new JTextField(10);
    private JtextField Current = new JTextField(10);
    // Add all your buttons correctly
    // Try using a GridLayout to make it easier
    // blah blah
    public void actionPerformed( ActionEvent event )
    int number = -1;
    String Command = event.getActionCommand();
    // Play your sound here.....
      doPlaySound();
    try
       number = Integer.parseInt( command );
    catch( NumberFormatException NFE )
        //ignore
    if( number != -1 )
        doIsNumber( number );
        return;   // don't process further
    if( command == "Enter" )
        doEnter();
        return;
    if(command == "Plus" )
        doPlus();
        return;
    // and so on
    }//end actionPerformed
    private void doNumber( int number )
       String S;
        currentNumber = ( currentNumber * 10 ) + number;
        S = Integer.tostring( currentNumber );  //cant remember if that throws anything
       Current.setText( S );  //Display Work Number
      private void doPlus()
        String S;
        total = total + currentNumber;
        currentNumber = 0;
        Current.setText("");
        S = Integer.toString( total );
        Display.setText( S );
      private void doEnter()
        total = currentNumber;
        currentNumber = 0;
        Current.setText( "");
        Display.setText( Integer.toString( total ) );
      private void doDivide()
         System.out.println("Err you got to be kidding");
      }yeh and I'd definitely go for a GridLayout()
    4 * 4, with JLabels for the blank filler parts......
    So does this help

  • Stop Redrawing in VBA

    Hello,
    I try (or better ife done) a complexe Script in VBA.
    It accesses directly Indesign and send Line by Line all Stuff to Indesign.
    So i DO NOT load the script in Indesign, i execute it directly in my VBA Application.
    The Problem is tthe Redrawing. I cannot stop it by simple set the preferences. these preferences will be ignored.
    The issue is not only the low Speed, its also the hangups after 40 or 50 Pages.
    Indesign itself works trough but all interfaces get scrambled. you can only press alt-f4 after finisching the script and save the file and restart indesign --- not a fine solution.
    if i open an Menü in Indesign while the script runs (lets say fileopen. everything is fine and the script is about 10 times faster.
    SO the question is how can i stop indesign from redrawing when i script from the outside of indesign.
    i alos found an idea in this forum for running into the background (by minimizing inseign) but this wont help. if you minimize it the same effects and low speed. only open an menue helps but i really dont like it.
    so anyidea how to to this OR run indesign real in the background ?
    thanks in advance and sorry for my bad english,..

    B.O.f.H. wrote:
    SOrry but you do not understand.
    Its not possible to check conditions with doscript if the conditiions based on the status of the record (or better status of every field fo the record) against the database. so you have to make an preprocessing where you hook all the data to doscript
    but your "DoScript" can check these conditions for you
    B.O.f.H. wrote:
    BUT this isnt suiteable too or how you wanna send doscript 900 records with 90 fields?
    as a string? lol
    why not ?
    you can even place your data in TextFrame as raw data and "DoScript" can process it - many times faster than you can do this by external application
    B.O.f.H. wrote:
    Doscript cannot check it faster faster than my own application. doscript cannot check it anyway. since when has doscript an own connector to an sql database? --- i dont know why youre so in liove with doscript but this method is only useable under special circumstances and  might be make sense only for special needs. your descriptions is a absolute false use of that method
    you really know nothing about DoScript script in DoScript can do THE SAME THINGS as you can do in external application I'm not sure about how complicated can be interface - if can be at all - but you can connect to the same applications and call the same queries like you can do in external app
    B.O.f.H. wrote:
    its against every (proffessional) programming method workout code like this.
    your comment that you can comment the code is useless. that wont work if youve a real complex code. its hard enough to reread it when its a clean thing and commented
    sorry, but again - you know nothing about writing scripts for InDesign
    trust me - sometimes - building script for DoScript method and calling it by this method is 10 times quicker than doing all by external application if you don't want to trust me - ask Olav
    and if you can't read your own comments ... no comments
    B.O.f.H. wrote:
    32kb ? you think that will be enought :-) youve no idea what im doing there lol
    sorry im not alowed to show even the layout or any prticiular information. its part of the contract.
    yes - I have no idea if you can't show as - try to describe - you don't need to use informations what colors and sizes and shapes and exact positions of all objects tell us how many TextFrames, Rectangles and other objects you have - and what is this - newspaper or catalog ?
    B.O.f.H. wrote:
    we do not write a simple scritp doing a or b and give it for download elsewhere. its an complete export modul.
    better its part of that module, we are exportig to different applications
    what you can see on my web page - is 1/4 or even 1/5 what I have done
    some of my tools "do a or b and can be downloaded" but I have many special apps created for particualar needs of my clients and you can trust me - these apps aren't simple and slow and when app is too slow for me - even if fast for client I always try to find better way to make it even faster
    for example - tool for building ads to newspaper - first version - 2 hour to lay out 15 000 ads - finall version - less than 30 minutes
    and nothing hangs or stops
    B.O.f.H. wrote:
    by the way telling someone to rewrite the hole module only to... hmm why should i use doscript again? which things does it better solve than now? nothing? making it more complex ?
    works faster and can do the same things you can do in external app
    B.O.f.H. wrote:
    but anyway do you think anyone will pay such redesign witout an viewable better result? so even its the perfect solution its not suiteable to rewrite everything. simply it would be myfreetime (and this is so rare that ill need about 2 years to finish that lol)
    after writing many different scripts - I know how to write next script ... I don't repeat the same mistakes
    B.O.f.H. wrote: btw if you execute it directly its easy to see make a memerydump - or provokate a bluescreen and windows do it for you hehe
    and i dont know but i think you can stop scripts in indesign and debug them
    I have never seen bluescreen caused by DoScript
    and no - you can't stop and debug script created as string and called by DoScript method - it just don't exist
    B.O.f.H. wrote:
    about the binarydata thing... gain we dont use a script in indesign. we use the dll interface in VB and talk to all objects in indesign directly.
    by something like this ?
    Set myInDi = CreateObject("InDesign.Application.CS3")
    B.O.f.H. wrote:
    thats why doscript cannot check anycondition even cannot insert the data correctly because we filter every dam string bevore its going to indesign -  we have to because we have no influence what the user will type in into the database - stringlenght can be to long (and other issues like injections) so its also a really bad programming lettings simply all strings from an database into your function without an filter.
    ok - but you can preprocess your data from database and build DoScript with filtered strings, and once again - you can add all conditions to "DoScript" and they can be processed much faster
    B.O.f.H. wrote:
    we do not develop indesign scripts, we develop software in 4 languages. we do not simplyscript or so. its a complete module in our application while the most functions use other objects from our own software so i cannot split it without reproducing and doubling additional tousends of lines
    and doubling the code is something you should never do
    once again - sorry, but you know nothing about writing scripts for InDesign
    robin
    www.adobescripts.co.uk

  • Trig etc functions on fractions?

    Fraction.java with trig methods?
    I've been playing with geospatial stuff for a while now, and I've been striking a lot of problems with the inherent inaccuracies of floating point number representations, especially in complex-calculated values.
    Here's a simple but pertinent example:
    class TheSumOfSevenSevethsIsNotOne
      public static void main(String[] args) {
        double f = 1.0/7.0;
        double sum = 0.0;
        for (int i=0; i<7; i++) {
          sum += f;
        System.out.println("sum = "+sum);
    // OUTPUT:
    // sum = 0.9999999999999998
    // not 1 as you might expectThe numbers I'm storing are latitudes and longitudes in degrees, so the max_value is just 360, but the requirement is that lat/lon must be accurate to 9 decimal places, which equates to about +/- 0.6 millimetres, which is (apparently) close enough to be regarded as "millimetre accuracy" by cartographers, even though total ambiguity is 1.2 mm.
    So three digits, plus six digits, is only nine digits, right?... and the humble int can store a tad more than 9 digits...
                                     123.123 456
    Integer.MAX_VALUE = (2^31)-1 = 2,147,483,647So I got to thinking... How would it be if I stored all lat/lons in the database as integers (multiplied by a million)? and did all my calculations rounded (not truncated) to the nearest 1. I could even save a few hundred million bytes that way... But that still leaves the same ole ambiguity around the actual calculations, many of which involve division ;-(.
    So I got to thinking maybe I could use fractions? How would a Fraction.java look?
    I googled around and found some great stuff, including:<ul>
    <li>[Diane Kramers Fraction.java|http://aleph0.clarku.edu/~djoyce/cs101/Resources/Fraction.java]
    <li>[Working with Fractions in Java|http://www.merriampark.com/fractions.htm] (includes BigFraction.java - very handy)
    <li>[Doug Leas Fraction.java|http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/misc/Fraction.java]
    </ul>
    But I haven't found anything which implements the basic trigonometry functions like sin, cos, tan, cot (and whatever else)... but [Daves Short Trig Course|http://www.clarku.edu/~djoyce/trig/] might give me the understanding required to do so... nor does any existing Fraction.java (which I've found so far) implement handy things like x^y, log, modulo (and whatever else) ... and not being a mathematician myself, I'm not overly eager to implement them... I'd never be sure I'd done the job properly.
    Please is anyone aware of any such implementations, even partial ones? Or could someone perhaps be persuaded to do part(s) of it just for the challenge?
    Cheers all. Keith.

    Sir Turing Pest,
    I do geospatial stuff amost exclusively and I dont understand this post.
    Why not just use doubles? The "error" you're seeing is so trivial.
    Put into perspective, if you were positioning something from the
    Sun to Pluto you'd be off by half a millimeter.
    How do you figure that you only need 9 digits?
    ignore 360 degrees. the circumference of the earth is 41k km and you need
    accuracy to .6 mm = 11 places
    (40 075.02 kilometers) / (.5 millimeters) = 80,150,040,000I didn't figure it, our local GIS expert did, based mainly on the size of an integer,
    When I do the math I get to 9 decimal places == about 1.11 mm, and that's allways rounded (not truncated) to 9 decimal places which I think means our points are accurate to plus or minus about 0.6 mm.... but I'm just a humble computer programmer, NOT a mathemetician or a geospatial expert.
    We're storing lat/lon to 9 decimal places... So 1 is 1 degree.
                   40,075.160000000     kilometers     circumference of the earth
    equals     40,075,160.000000000     meters        circumference of the earth
    equals        111,319.888888889     meters        meters per degree at the equator
    equals              0.000000001     degrees         storage accurracy
    equals              0.000111320     meters         
    equals              1.113198889     millemeters     storage accurracy in millimeters
    So sure you established that aggregate double addition comes out "wrong".
    Then dont do it, lol. Dont waste your time trying to invent new number
    storage. Just try to write your algorithms so you don't do aggregate addition as much.We try not to aggregate calculated values... but there are certain algorithms, like the reverse/mercator transforms where it's unavoidable... So opportunities for improvement is this area a likely to be NOT very cost effective, ie: bigger than Ben Hur, harder than a bulls azz, and uglier than an extreme closeup of my scotum... My main concern has been (rightly or wrongly) the inherent inaccuracy in our storage of numbers.... thinking that improvements in this area just might be cost-effective, and therefore doable.
    Iterestingly... we had a tree-clearing case kicked out of court recenctly because we couldn't define the boundaries of the national park in question to the satisfaction of the court... a "satisfaction level" which was based on our own "millimeter accuracy" definition of the required accuracy of survey data, which is based on international standards for GIS. ie: It's a bit of sore spot around the office at the moment, and I'm trying to do some bluddy thing about it... I'm just at a bit of a loss as to exactly what, without throwing literally millions of dollars at the problem to upgrade ALL our systems to 11 decimal places (or better). I'm in stress city.
    Cheers. Keith.

  • Can you help with problem

    I'm new in java programming
    the machine problem is for ordering system
    \\input character
    import java.io.*;
    class InputChar{
         public InputStreamReader reads;
         public InputStream reads2;
         public DataInputStream keyboard;
         public char input;
         public InputChar(){
         public char InptChar(){
              reads=new InputStreamReader(System.in);
              reads2=new InputStream(reads);
              keyboard=new DataInputStream(reads2);
              try{          
                   input = keyboard.readChar();                    
              }catch(Exception e){
                   System.out.print("Error Detected!!");
              return input;
    \\input for string
    import java.io.*;
    class InputS{
         public InputStreamReader reads;
         public BufferedReader keyboard;
         public String input="";
         public InputS(){
         public String InptS(){
              reads=new InputStreamReader(System.in);
              keyboard=new BufferedReader(reads);
              try{          
                   input = keyboard.readLine();                    
              }catch(Exception e){
                   System.out.print("Error Detected!!");
              return input;
    class InsuredPackage extends Package{
         public double insureCost;
         public InsuredPackage(double weightS, String sMethod,double iCost) throws Exception{
              super(weightS,sMethod);
              insureCost=iCost;
         public double Additional(double sCost){
              if(sCost >=0 && sCost <=1){
                   sCost=sCost+2.45;
              }else if(sCost >1 && sCost <=3){
                   sCost=sCost+3.95;
              }else if(sCost >3){
                   sCost=sCost+5.55;
              System.out.print("\nAdd Insurance to the Shipping: "+sCost);
              return sCost;
    class Shipping extends Order{
         public int ship;
         public int totalP;
         public int qtyS,unitS;
         public Shipping(int ships,String cName,int cNum,int qtyO,int unitP)throws Exception{
              super(cName, cNum, qtyO, unitP);
              ship=ships;
              qtyS=qtyO;
              unitS=unitP;
         public int AddShip(int s){
              ship=s;
              return ship;
         public int OutputShip(){
              return this.ship;
    class Package{
         public double weigthO;
         public String shipMet;
         public double shipCost;
         public Package(double weight, String sMethod)throws Exception{
              weigthO=weight;
              shipMet=sMethod;
              CalculateCost();
         public double CalculateCost(){
              double pounds;
              pounds=weigthO* 0.0625;
              if (this.shipMet== "a"|| this.shipMet=="A"){
                   if(pounds >=1 && pounds <=8){
                        shipCost=2;
                   }else if(pounds >=9 && pounds <=16){
                        shipCost=3;
                   }else if(pounds >=17){
                        shipCost=4.5;
                   }else if(pounds <1){
                        System.out.print("\nThe pounds is less than one");
                        shipCost=0;
                   System.out.print("\nShipping method for Air");
              }else if(this.shipMet=="t" || this.shipMet=="T"){
                   if(pounds >=1 && pounds <=8){
                        shipCost=1.5;
                   }else if(pounds >=9 && pounds <=16){
                        shipCost=2.35;
                   }else if(pounds >=17){
                        shipCost=3.25;
                   }else if(pounds <1){
                        System.out.print("\nThe pounds is less than one");
                        shipCost=0;
                   System.out.print("\nShipping method for Truck");
              }else if(this.shipMet=="m" || this.shipMet=="M"){
                   if(pounds >=1 && pounds <=8){
                        shipCost=0.5;
                   }else if(pounds >=9 && pounds <=16){
                        shipCost=1.5;
                   }else if(pounds >=17){
                        shipCost=2.15;
                   }else if(pounds <1){
                        System.out.print("\nThe pounds is less than one");
                        shipCost=0;
                   System.out.print("\nShipping method for Mail");
              return shipCost;
         public void OutputCost(){
                   System.out.print("\nCost of the Package"+ CalculateCost());
    \\main class
    class OutputPackage{
         public static void main(String args[]) throws Exception{
              double weights=0.0d, iCosts=0.0d;
              String sMethods="";
              InputS inp= new InputS();
              InputChar
              Package pack;
              InsuredPackage insured=new InsuredPackage(weights, sMethods, iCosts);
              System.out.print("Input the weight[ounce]: ");
                   weights=Double.parseDouble(inp.InptS());
              System.out.print("\nInput the Shipping Method: ");
                   sMethods=inp.InptS();
                   pack=new Package( weights, sMethods);
                   pack.OutputCost();
              System.out.print("\nInput Additional Cost for Insurance: ");
                   insured.Additional(Double.parseDouble(inp.InptS()));\\this line where the error detected
    }I use a bluej language.
    There is no error in all classes after I compile
    I know that this is a logical error, I'm just in the middle of testing and debugging
    The program is running
    Three input must be insert in this program
    You can input data in first 2 input
    But in the last input, the error is detected and it show the "Empty string"
    And I don't what the hell is going to happen in this program
    Can you tell me some tips
    Tetranitrotolium>>>begginer class

    Hello,
    Your class instance variables are declared as public. The idea is that they are hidden so that they are only available to the class methods. So do not specify them as public.
    You are calling Calculate twice. The call OutputCost should be using the instance variable rather than calling Calculate.
    I'm not sure why you are creating a Package instance when there is already one inside InsuredPackage.
    Class InputChar is not used.
    Typo comments are // and not \\.
    Good luck.
    Edited by: MikeUK on Sep 1, 2008 10:40 AM

  • Problem passing multiple array lists to a single method

    Hi, all:
    I have written a generic averaging method that takes an array list full of doubles, adds them all up, divides by the size of the array list, and spits out a double variable. I want to pass it several array lists from another method, and I can't quite figure out how to do it. Here's the averager method:
         public double averagerMethod (ArrayList <Double> arrayList) {
              ArrayList <Double> x = new ArrayList <Double> (arrayList); //the array list of integers being fed into this method.
              double total = 0;//the total of the integers in that array list.
              for (int i = 0; i < x.size(); i++) {//for every element in the array list,
                   double addition = x.get(i);//get each element,
                   total = total + addition; //add it to the total,
              double arrayListSize = x.size();//get the total number of elements in that array list,
              double average = total/arrayListSize;//divide the sum of the elements by the number of elements,
              return average;//return the average.
         }And here's the method that sends several array lists to that method:
         public boolean sameParameterSweep (ArrayList <Double> arrayList) {
              sameParameterSweep = false;//automatically sets the boolean to false.
              arrayList = new ArrayList <Double> (checker);//instantiate an array list that's the same as checker.
              double same = arrayList.get(2); //gets the third value from the array list and casts it to double.
              if (same == before) {//if the third value is the same as the previous row's third value,
                   processARowIntoArrayLists(checker);//send this row to the parseAParameterSweep method.
                   sameParameterSweep = true;//set the parameter sweep to true.
              if (same != before) {//if the third value is NOT the same,
                   averagerMethod(totalTicks);//go average the values in the array lists that have been stored.
                   averagerMethod(totalNumGreens);
                   averagerMethod(totalNumMagentas);
                   sameParameterSweep = false;
              before = same; //problematic!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
         return sameParameterSweep;
         }Obviously, the problem is that I'm not passing the array lists from this method to the averager method the right way. What am I doing wrong?

    Encephalopathic wrote:
    There are several issues that I see, but the main one is that you are calculating average results but then just discarding them. You never assign the result to a variable.
    In other words you're doing this:
    averagerMethod(myArrayList);  // this discards the resultinstead of this:
    someDoubleVariable = averagerMethod(myArrayList); // this stores the resultAlso, do you wish to check for zero-sized array lists before calculating? And what would you return if the array list size were zero?So in solving that problem, I've come up with another one that I can't figure out, and I can't fix this problem until I fix that.
    I have several thousand lines of data. They consist of parameter sweeps of given variables. What I'm trying to do is to store pieces of
    data in array lists until the next parameter adjustment happens. When that parameter adjustment happens, I want to take the arraylists
    I've been storing data in, do my averaging thing, and clear the arraylists for the next set of runs under a given parameter set.
    Here's the issue: I'm having the devil of a time telling my application that a given parameter run is over. Imagine me doing stuff to several variables (number of solders, number of greens, number of magentas) and getting columns of output. My data will hold constant the number of soldiers, and for, say, ten runs at 100 soldiers, I'll get varying numbers of greens and magentas at the end of each of those ten runs. When I switch to 150 soldiers to generate data for ten more runs, and so forth, I need to average the number of greens and magentas at the end of the previous set of ten runs. My problem is that I can't figure out how to tell my app that a given parameter run is over.
    I have it set up so that I take my data file of, say, ten thousand lines, and read each line into a scanner to do stuff with. I need to check a given line's third value, and compare it to the previous line's third value (that's the number of soldiers). If this line has a third value that is the same as the previous line's third value, send this line to the other methods that break it up and store it. If this line has a third value that is NOT the same as the previous line's third value, go calculate the averages, clear those array lists, and begin a new chunk of data by sending this line to the other methods that break it up and store it.
    This is not as trivial a problem as it would seem at first: I can't figure out how to check the previous line's third value. I've written a lot of torturous code, but I just deleted it because I kept getting myself in deeper and deeper with added methods. How can I check the previous value of an array list that's NOT the one I'm fiddling with right now? Here's the method I use to create the array lists of lines of doubles:
         public void parseMyFileLineByLine() {
              totalNumGreens = new ArrayList <Double>();//the total number of greens for a given parameter sweep
              totalNumMagentas = new ArrayList <Double>();//the total number of magentas for a given parameter sweep.
              totalTicks = new ArrayList <Double>();//the total number of ticks it took to settle for a given parameter sweep.
              for (int i = 8; i < rowStorer.size() - 2; i++) {//for each line,
                   checker = new ArrayList <Double>();//instantiates an array list to store each piece in that row.
                   String nextLine = rowStorer.get(i); //instantiate a string that contains all the information in that line.
                   try {
                        Scanner rowScanner = new Scanner (nextLine); //instantiates a scanner for the row under analysis.
                        rowScanner.useDelimiter(",\\s*");//that scanner can use whitespace or commas as the delimiter between information.
                        while (rowScanner.hasNext()) {//while there's still information in that scanner,
                             String piece = rowScanner.next(); //gets each piece of information from the row scanner.
                             double x = Double.valueOf(piece);//casts that stringed piece to a double.
                             checker.add(x);//adds those doubles to the array list checker.
                   catch (NoSuchElementException nsee) {
                        nsee.printStackTrace();
                   //System.out.println("checker contains: " + checker);
                   processARowIntoArrayLists(checker);//sends checker to the method that splits it up into its columns.
         }

  • Problem with the  addition of  double numbers

    when we try to add the two double numbers say,
    119.52, 10.00
    here we should get 129.52
    but it is giving as 129.51999999999998
    This is happening only for sum numbers.
    Here i want to round this to two digits after decimal point
    if i round the above value i will get 129.52 and the problem will be solved.
    But we don't know exactly on what basis we are getting the sum as 129.51999999999998.
    Assume that, tomorrow when we are adding some other numbers we may got like
    129.51444444444448
    when we round this we get 129.51
    but actually we have to get 129.52.
    If anyone know why the system is giving that wrong sum , please give solution to avoid this.
    In My application , i want the exact sum amount so if i add some numbers i should get exact sum.
    like 119.52+10=129.52
    i want exactly this. How to get this.

    As another poster said, this is a topic worth reading up on, as there are subtleties involved in this kind of imprecise math. A couple of points to get you started though...
    * Java's double type has a precision of something like 16 (20? 24?) decimal places. (You should be able to find the correct number in the lang. spec., or someone may be kind enough to post it here.) I don't remember the formal definition, but what this means, approximately, is that any number that can be represented will be accurate to within +/-0.5*10^-16 of its value. That is, if the actual value is 2e5, then the absolute value of the error in the representation will be less than 0.5e-11. (I might be off be a factor of 2 and/or an order of magnitude here, but you get the general idea.) The good news is, no value will be in error by more than that amount. The bad news is, any value could be in error by up to that amount. These are the two key points.
    * Compare the precision implicit in your data and needed in your results to that of Java, along with the number of intermediate calculations you'll do to get a final result. For instance, if you're doing financial calcs in the tens of billions of dollars, and you need accuracy to the penny, that's one part in 10^-12. Assuming any given value is off by no more than one part in 10^-16, and assuming all errors are in the same direction, if you do 10^4 cumulative additions, you'll be off by a penny. Again, these are rough, and I may have missed something, but this is the kind of thing to look at to determine how the inherent imprecision will affect you.
    * Don't round any intermediate results. Keep the precision you have. However, when you're comparing (as jschell demonstrated) make a copy of the value and round that copy before doing the comparison. Use the first two points above to determine whether that rounding will meet your needs for precision. Same goes for displaying.
    * Finally, if the 10^-16 (or whatever it was) precision of a double is not sufficient, you can get arbitrary precision with BigDecimal. There are a couple of caveats, however. 1) It's a lot slower than using primitives ans 2) Arbitrary precision does not mean infinite precision. You can specify as many decimal places as you want (subject to time and memory constraints), but you even if you specify 1,000 decimal places, you can still be off by 5 in the 1001st place.

  • Hi, I have a Iphone 4s and I have a problem because I can't change from one screen to another by dragging my finger, it does't respond, in addition to access to an icon I have to double click instead of one.

    I can't change from one screen to another by dragging my finger, it does't respond, in addition to access to an icon I have to double click instead of one.

    That's correct.  Unless you can magically unlock your 4S, you can't sync it.  It's broken.  Had you been using the phone properly, you would have been synching it frequently and would have had a recent backup from which to restore your iPhone 5.

  • How to roundoff addition of two double variables

    class Example
         public static void main(String args[])
              double k=1.236+2.138;
              System.out.println(k);
    }output of program:
    3.3739999999999997
    so how will i get the exact value of the addition

    etgohomeok wrote:
    If you know it's going to be 3 decimal places every time, you could always do:
    double d1 = 1.236;
    double d2 = 2.138;
    int i1 = (int) d1 * 1000;
    int i2 = (int) d2 * 1000;
    int iResult = i1 + i2;
    double dResult = ((double) iResult) / 1000;You could collapse that into a couple of lines and eliminate alot of the variables, but that's the general point...Unfortunately, that gives the wrong answer. Try running it and see.

  • Addition of primitive double

    Run this class
    class TestD
         public static void main(String[] arg)
              double d1=13.09d;
              double d2=10.1d;
              System.out.println(d1);
              System.out.println(d2);
              System.out.println(d1+d2);
    Result:
    13.09
    10.1
    23.189999999999998
    is it reasonable?

    This is due to internal representation error and happens with any other language. Search in threads for "internal representation error", "IEEE representation" and related issues. Precision required? use BigDecimal class.

  • Image processing - doubling frequency?

    There's some image processing commands in photoshop, like high pass and blur (i.e. low pass). I want more. Is there a way to achieve frequency doubling, or better yet, frequency x N where N is any number the user can specify?
    This may be useful for making coarse skin texture look finer. It can be implemented by diving the selected area into small squares, and then shrink each squares to half their original sizes. This would make the details look finer grain (hence frequency doubling). It would open up gaps between the squares, which can be filled in by taking additional samples and shrinking them to fill the gaps. This is similar to frequency doubling in audio processing.
    I'm using cs4 extended. Is there an add-on to do this?

    Yes there is a retouching method that uses "so called" high frequency and low frequency layers. There is a great discussion in the retouching section on a site called Model Mayhem. Some pretty clever retouchers hang out there. You can use this effect to smooth skin for portraits, and you can vary the smooting from just a small amount to some of the images used in makeup advertising where the model has a perfect yet sort of plastic looking skin. I use this technique now and again working on portrait subjects that have less than perfect skin.
    Basically you make two copies of your opening layer, name the first layer "Low Frequency" and the second layer "High Frequency".
    Select the Low Frequency Layer and apply a small amount of Gaussian Blur around 2.9 is a good starting point
    Now go to the High Frequency Layer and go to Image and select apply image. In the drop down select your low frequency layer and check the invert box and set the blending mode to add with a scale of 2 offset 0 and apply then change the Layer Mode to Linear Light. You now have two retouch layers you can work on and you still maintain some texture in the skin.
    To finish off, select the Low Frequency Layer and duplicate and name as smooth skin. Apply a blur, surface blur works best with a starting point of Radius = 7 and Threshold = 6 apply and then create a black mask, Now painting with white over selected parts of the image will smooth out the skin.
    Experiment with the settings to get the effect you are looking for. Also, when cloning and healing on the high and low frequency layers look to see what is effected which will give you a better idea on the seperation technique.
    Here is a quick example of this technique
    The Before Image
    The After Image
    Mike

  • Monetary value as double

    I have to do a program which prompts for and reads a double value representing a monetary amount. It has to determine the fewest number of each bill and coin needed to represent that amount, starting with the highest (maximum size needed a ten dollar bill). So far, this is all I have for my code. But I am really having trouble on the calculation part I just don't know how to start. Thanks for your help.
    import java.util.Scanner;
        public class Program_2_9
       //This program will prompt for and read a double value. Then determine
       //the fewest number of each bill and coin needed to represent that
       //amount, starting with the highest(10 dollar bill is the maximum size
       //needed).
           public static void main(String[] args)
          //Declaration section
             double pennies,nickels,dimes,quarters,dollar;
             int total;
             Scanner scan = new Scanner(System.in);
          //Read coins value as a double value
             System.out.println("Enter amount of dollars(double value): ");
             dollar= scan.nextDouble();
             System.out.println("Enter amount of quarters(double value): ");
             quarters= scan.nextDouble();
             System.out.println("Enter amount of dimes(double value): ");
             dimes= scan.nextDouble();
             System.out.println("Enter amount of nickels(double value): ");
             nickels = scan.nextDouble();
             System.out.println("Enter amount of pennies(double value): ");
             pennies = scan.nextDouble();
         

    Here's some info on classpath:
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • I can see my pictures in "Recent" but when I double click a picture to make it big its just a big exclamation mark on the preview. What do I do? I also can't see the pictures to upload to facebook or email.....

    I can't view pictures to attach to an email or upload to facebook it's just blank or shows an exclamation mark for each picture. I can see them in "recent" but if I double click on a picture to enlarge it it's just an exclamation mark again. What is wrong and how do I fix it?
    Thank you!!!

    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 

  • ALV: Issue with double  click event after sorting the ALV

    Hello Experts,
    I have an internal table that populates an ALV grid. When the user doubleclicks a row, my method HANDLE_DOUBLE_CLICK returns the e_row-index value from the ALV Grid. I use this index value to read the internal table, then retrieve additional data.
    My problem is the user may sort the ALV grid before double clicking on a line. If this happens my internal table is not sorted to match the ALV grid, so reading the internal table with the e_row-index value returns the wrong information.
    When the double click event occurs, is it possible to capture the value in column 1 instead of a value for e_row-index?
    There is one more paramter in HANDLE_DOUBLE_CLICK for row id.   It is coming blank in debugging .  what is the purpose of this parameter and how i can make use of it ?
    Regards
    Vivek

    Hi,
    I am Posting The Code Which Uses Double Click Event.
    And This Code will provide the total information to you.
    REPORT  ZALVGRID_PG.
    TABLES: SSCRFIELDS.
    DATA: V_BELNR TYPE RBKP-BELNR.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: IRNO FOR V_BELNR.
    PARAMETERS: P_GJAHR TYPE RBKP-GJAHR.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA: WA TYPE ZALVGRID_DISPLAY,
          ITAB TYPE STANDARD TABLE OF ZALVGRID_DISPLAY.
    DATA: IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: L_IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: L_TREE TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.
    TYPE-POOLS: SLIS,SDYDO.
    DATA: L_LOGO TYPE SDYDO_VALUE,
          L_LIST TYPE SLIS_T_LISTHEADER.
    END-OF-SELECTION.
    CLASS CL_LC DEFINITION.
      PUBLIC SECTION.
        METHODS: DC FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN.
    ENDCLASS.
    CLASS CL_LC IMPLEMENTATION.
      METHOD DC.
        DATA: WA1 TYPE ZALVGRID_DISPLAY.
        READ TABLE ITAB INTO WA1 INDEX E_ROW-INDEX.
        BREAK-POINT.
        SET PARAMETER ID 'BLN' FIELD WA1-BELNR.
        CALL TRANSACTION 'FB02'.
      ENDMETHOD.                    "DC
    ENDCLASS.
    DATA: OBJ_CL TYPE REF TO CL_LC.
    START-OF-SELECTION.
      PERFORM SELECT_DATA.
      IF SY-SUBRC = 0.
        CALL SCREEN 100.
      ELSE.
        MESSAGE E000(0) WITH 'DATA NOT FOUND'.
      ENDIF.
      INCLUDE ZALVGRID_PG_STATUS_0100O01.
      INCLUDE ZALVGRID_PG_LOGOSUBF01.
      INCLUDE ZALVGRID_PG_SELECT_DATAF01.
    INCLUDE ZALVGRID_PG_USER_COMMAND_01I01.
    ***INCLUDE ZALVGRID_PG_STATUS_0100O01 .
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'AB'.
    *  SET TITLEBAR 'xxx'.
      IF IDENTITY IS INITIAL.
        CREATE OBJECT IDENTITY
        EXPORTING
          CONTAINER_NAME = 'ALVCONTROL'.
        CREATE OBJECT GRID
        EXPORTING
          I_PARENT = IDENTITY.
        CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
             I_STRUCTURE_NAME              = 'ZALVGRID_DISPLAY'
          CHANGING
            IT_OUTTAB                     = ITAB.
        CREATE OBJECT OBJ_CL.
        SET HANDLER OBJ_CL->DC FOR GRID.
        ENDIF.
        IF L_IDENTITY IS INITIAL.
          CREATE OBJECT L_IDENTITY
          EXPORTING
            CONTAINER_NAME = 'LOGO'.
          CREATE OBJECT L_TREE
          EXPORTING
            I_PARENT = L_IDENTITY.
          PERFORM LOGOSUB USING L_LOGO.
          CALL METHOD L_TREE->CREATE_REPORT_HEADER
            EXPORTING
              IT_LIST_COMMENTARY    = L_LIST
              I_LOGO                = L_LOGO.
          ENDIF    .
    ENDMODULE.                 " STATUS_0100  OUTPUT
    ***INCLUDE ZALVGRID_PG_LOGOSUBF01 .
    FORM LOGOSUB  USING    P_L_LOGO.
      P_L_LOGO = 'ERPLOGO'.
    ENDFORM.                    " LOGOSUB
    ***INCLUDE ZALVGRID_PG_SELECT_DATAF01 .
    FORM SELECT_DATA .
      SELECT RBKP~BELNR
             RBKP~BLDAT
             RSEG~BUZEI
             RSEG~MATNR
             INTO TABLE ITAB
             FROM RBKP INNER JOIN RSEG
        ON RBKP~BELNR = RSEG~BELNR
        WHERE RBKP~BELNR IN IRNO
        AND RBKP~GJAHR = P_GJAHR.
    ENDFORM.                    " SELECT_DATA
    ***INCLUDE ZALVGRID_PG_USER_COMMAND_01I01 .
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
           EXIT.
           ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Warm Regards,
    PavanKumar.G
    Edited by: pavankumar.g on Jan 19, 2012 5:30 AM

Maybe you are looking for

  • New problem connecting Canon 20D camera to OS 10.4.3

    I've searched these forums and others but can find nothing about this. Hopefully someone here can help. I've been connecting my 20D to my 15" PowerBook 2005 (first running OS 10.3.9 and now running OS 10.4.3) since I got the camera two months ago. I

  • Has Apple come up with a fix for Parental Controls?

    I've browsed around on this forum quite a bit but haven't seen any real fix for the fact that Parental Controls does not work as advertised (come to think of it, it doesn't work at all). Is there a fix?? I'm using a new iMac with 10.5.2 (clean instal

  • Retruning bulk collect into---Error

    the code: DECLARE v_file UTL_FILE.file_type; TYPE emp_tab_type IS TABLE OF emp%ROWTYPE; v_row VARCHAR2 (100); emp_tab emp_tab_type; BEGIN v_file := UTL_FILE.fopen ('XML_DIR', 'emp.txt', 'w'); EXECUTE IMMEDIATE 'select * from emp' RETURNING BULK COLLE

  • Cs3 bridge preview ghost windows

    I am running CS3 on a Gateway P7805-u w/ Intel Core Duo 2 CPU 2.26/2.27 ghz processor, 4.0 ram and 64 bit os machine using  Windows Vista. I am unable to use Bridge because the preview windows seem to duplicate themselves and I end up with what looks

  • Pre-populate data and current date only when it routes to that person

    Hi, Can  any one please advise how to pre-populate the manager's name when it routes to the manager but not when the user fills the form. Example: user fills the form and submit it to the manager, the process has the query to look up for the manager