Call variable from outside method

I have a method for a listSelectionListener with a variable in it called "results", I want to be able to get the information from this variable outside of this method. In my main class alled "gifts" I have a TextArea and I want "results" to be displayed in it but I can't get results into it because it's in a seperate method. Anyone know how I can do this?
Heres some relevant code:
public Gifts()
          super( "Spiritual Gift Database" );
          try
               Class.forName(JDBC_DRIVER);
               conn = DriverManager.getConnection(DATABASE_URL);
               stat = conn.createStatement();
               ResultSet rs = stat.executeQuery("SELECT heading1 FROM demo");
               Vector vector1 = new Vector();
               while(rs.next()) vector1.add(rs.getObject(1));
               container = getContentPane();
           container.setLayout( new FlowLayout() );
               nameListPanel = new JPanel();
               statListPanel = new JPanel();
               buttonPanel = new JPanel();
           nameList = new JList(vector1);
           nameList.setVisibleRowCount( 9 );
               nameList.setPrototypeCellValue("XXXXXXXXXXXX");
               nameList.addListSelectionListener(
                    new ListSelectionListener()
                         public void valueChanged(ListSelectionEvent event)
                              try
                                   ResultSet resultSet = stat.executeQuery("SELECT * FROM demo");
                                   StringBuffer results = new StringBuffer();
                                   ResultSetMetaData metaData = resultSet.getMetaData();
                                   int numberOfColumns = metaData.getColumnCount();
                                   for(int i = 1; i<=numberOfColumns; i++)
                                   results.append(metaData.getColumnName(i) + "\t");
                                   results.append("\n");
                                   while (resultSet.next())
                                        for(int i = 1; i<= numberOfColumns; i++)
                                        results.append(resultSet.getObject(i) + "\t");
                                        results.append("\n");
                              catch(SQLException sqlException)
                                   JOptionPane.showMessageDialog(null,sqlException.getMessage(),
                                   "Database Error", JOptionPane.ERROR_MESSAGE);
                                   System.exit(1);
               statList = new JTextArea(results.toString());
               add = new JButton("Add Entry");

Declare you variable at the class level instead of the function level, then you can see if from any method in the class.
Paul

Similar Messages

  • Reading a variable from one method to another method

    I am pretty new to Java and object code, so please understand if you think I should know the answer to this.
    I wish to pass a variable from one method to another within one servet. I have a doPost method:
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              HttpSession session = request.getSession();
             String userID = (String)session.getAttribute("userID");
             String title = request.getParameter("title");
            PrintWriter out = response.getWriter();
            out.println("userID is ..."+userID);
    } and wish to pass the variable userID to:
      public static void writeToDB(String title) {
             try{
                  String connectionURL = "jdbc:mysql://localhost/cms_college";
                  Connection connection=null;     
                 Class.forName("com.mysql.jdbc.Driver");
                 connection = DriverManager.getConnection(connectionURL, "root", "");
                 Statement st = connection.createStatement();         
                   st.executeUpdate ("INSERT INTO cmsarticles (title, userID) VALUES('"+title+"','"+userID+"')");
             catch(Exception e){
                   System.out.println("Exception is ;"+e);
        }because, at the moment the userID cannot be resolved in the writeToDB method. Thanking you in anticipation.

    Thanks for responding.
    If I replace
    public static void writeToDB(String title)with
    public static void writeToDB(String title, String userID)It throws up an error in the following method
    public void processFileItem(FileItem item) {
              // Can access all sorts of useful info. using FileItem methods
              if (item.isFormField()) {
                   //Map<String, String> formParameters = new LinkedHashMap<String, String>();
                   //String filename = item.getFieldName();
                   //String title = item.getString();
                   //System.out.println("received filename is ... " + filename );
                   //formParameters.put(title, filename);
                   } else {
                      // Is an uploaded file, so get name & store on local filesystem
                      String uploadedFileName = new File(item.getName()).getName();            
                      File savedFile = new File("c:/uploads/"+uploadedFileName);
                      long sizeInBytes = item.getSize();
                      System.out.println("uploadedFileName is " + uploadedFileName);
                      String title = uploadedFileName;
                      System.out.println("size in bytes is " + sizeInBytes);
                      writeToDB(title);
                      try {
                        item.write(savedFile);// write uploaded file to local storage
                      } catch (Exception e) {
                        // Problem while writing the file to local storage
              }      saying there are not enough arguments in writeToDB(title);
    and if I put in an extra argumenet writeToDB(title,String userID);
    again it does not recognise userID

  • Read variable from other method

    i am coding a method which required a reading from a variable in another method.
    what's the syntax for getting the variable???
    I tried.....
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    public static void main (String[ ]args)
    range_1
    private static double area (int radius, final double pi)
    radius = range_1
    return radius * radius * pi
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    but it doesn't work

    "private static double area (int radius, final double pi)"
    final double pi? as the method parameter? ROFLHAHAHAHAHAHAHAHAHAHAHA
    That made my day.
    As for your question, make range_1 a global variable, in other words, declare it outside your main method
    Something like
    public class gary{
    int range_1;
    public static void main (String afgfg[]){
    range_1=//something;
    private static double area (int radius)
    radius = range_1
    return radius * radius * 3.14

  • Calling SAPSCRIPT from CLASS-METHOD?

    Is it possible to call SAPSCRIPT from a class-method?
    I have no idea how to use variables - there are no global variables in classes.
    thx

    Hi,
    The super reference can only be used in redefined methods to call superclass implementation . So probably what you can do is use upcasting and access the required superclass implementation. I can think of only this way...;-)
    Ex data lr_super type ref to cl_superclass
    lr_super = lr_subclass.
    lr_super->method().
    ~Piyush Patil

  • How can I access my Call Handlers from outside line (outside district)

    CISCO VoIP System Info:
    Cisco Unity Connection version: 8.6.2ES25.21900-25
    CM Admin System version: 8.6.2.21900-5 on C200M2 Servers
    Our engineer setup our Call Handlers so that in our to change the recordings on them, you diall 7800 from a phone inside the office, or as he put it in the procedures, from within the district.  Once you dial, you need to enter the user code, password, then the extension of the Call Handler, and we have no problems recording/changing any Call Handlers.  However, due to possible inclement weather approaching in the next few weeks, I was asked how we cna change them from an outside line (manager's home, etc.).  We cannot access from an outside line.  7800 is not a DID, it is simply the extension he assigned to access the call handlers.  I even went so far as to setup a dummy phone and forward it to 7800, but this does not work either.  It forwards to the extension's voicemail.  Is there a way we can access the Call Handlers from an outside line?  Any help would be gretaly appreciated.  Thank you in advance.

    Hey Joseph,
    Go Flames ....errrrrrrrrrrrrrrrrrr maybe not so much
    What you are trying to get to is really just the Greetings Administrator
    conversation and there are multiple ways to get there.
    For example, you can set up a Caller Input off any mailbox (Press 1-9) let's say 7 to
    go to Conversation> Greetings Administrator. So you could set this on the managers mailbox
    and when he calls his own number from home once his greeting
    kicks in he can press 7 to link to the Greetings Administrator conversation
    or
    You could set up a DID DN xxx-xxx-2345 as a CTI-RP and set Call Forward All to reach Unity Connection.
    In this case you will need to use the Forwarded Routing Rules = xxx-xxx-2345 route to
    Greetings Administrator. Make sure to move this rule to the bottom of the list!!
    Cheers!
    Rob
    "Why do the best things always disappear " 
    - The Band

  • Call String from another method

    hey,
    Im pretty new to java and Im having problems with calling a String from another method
    I have two public voids, in one of them I have a String which I wanna use in another method.
    Thanks

    here is some of my code:
    public void getOrder() {
            try {
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                Document doc = docBuilder.parse(new File("c:/orders.xml"));
                // normalize text representation
                doc.getDocumentElement().normalize();
                System.out.println("Root element of the doc is " + doc.getDocumentElement().getNodeName());
                // lees orders
                NodeList orderlijst = doc.getElementsByTagName("order_naam");
                System.out.println("totale aantal orders : " + orderlijst.getLength());
             //    Element orderitem = (Element) orderlijst.item(0);
    System.out.println("name=" + doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue());
              String st =doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue();
      public void createGUI () {
            this.removeAll();
            lbltest = new JLabel();
            lbltest.setBounds(20, 40, 150, 20);
            lbltest.setFont(new Font("Verdana", Font.BOLD, 12));
            this.add(lbltest);
        i want to use the String st in the jLabel in createGUI

  • Reaching a variable from another method

    I want to "reach" the String variable 'a' from the method 'aMethod()'.
    What am I doing wrong when writing:
    String newVariable = aMethod().a;
    /Cullum

    You can't reach local variables.
    Kaj

  • Problem with calling dispose() from static method

    I have one class, where I have this:
    EditorWindow.disposeWindow();and class EditorWindow, where I have static method
    protected static void disposeWindow() {
        dispose();
    }But, dispose() cant be called from static method. Is there any way to hide or close the EditorWindow window?

    kaneeec wrote:
    I dont have references of these windows, because it would be too difficult. They are created just by new Window().setVisible(true);It's not difficult:
    Window w = new Window();
    w.setVisible(true);Now you have a reference (w) to your window that you can later call dispose() on.
    w.dispose();dispose() isn't a static method, so you have no choice but to call it on a specific instance.

  • Someone calling you from outside the United States

    If my friend calls me from Australia and they use either a land line or a cell phone. Am I going to get charged extra at all even if my plan is older on my cell phone? I only get 500 shared minutes a month at the moment for all types of minutes except M2M. Also what type of minutes am I going to eat (i.e: my everyday plan minutes or roaming) if I am currently in my home state in the US? Also is it going to show up on the bill differently then normal than any other type of call?
    Feedback and such would be much appreciated! Thanks

    Suemac wrote:
    If my friend calls me from Australia and they use either a land line or a cell phone. Am I going to get charged extra at all even if my plan is older on my cell phone? I only get 500 shared minutes a month at the moment for all types of minutes except M2M. Also what type of minutes am I going to eat (i.e: my everyday plan minutes or roaming) if I am currently in my home state in the US? Also is it going to show up on the bill differently then normal than any other type of call?
    Feedback and such would be much appreciated! Thanks
    As long as you are in the US when you receive their call, you will not get charged anything extra for receiving this call.

  • Using a variable from another method within another method

    I have a couple methods. In the beginning of the class I declared the double variables. Then I have a method1 that in that class that changes those double variables. Then the last method2 runs, and is suppose to print information to the screen with the changed variable information all being called from another class. How do I get those changed double variables to be read in method2?

    Sorry about all that, when I paste it in from the compiler it's skews it some, but hopefully this should be more readable
    * Project Filename: Lab1s2
    * Program Filename: Lab1s2.java
    * I/O Files used:
    * Fuction:          This program will use interactive input to ask cost of a
    *                   product in dollars and cents (eg. 17.50).  If the product
    *                   is not less than $100.00, an error message will be displayed
    *                   and input will be requested again.  Once a valid value is
    *                   given, the program will calculate the fewest bills and change
    *                   to be returned if the customer gives a $100.00 bill.
    * Formulas:         (100 - amount = change)
    * Algorithm:
    * Purpose:          The main method calls other methods found in the MoneyXX class
    *                   that will accomplish the function of the project.
    public class Lab2sl
         public static void main( String[] args ) // main method begins program execution
         Money2sl myMoney2sl = new Money2sl(); // create myMoney2sl object and assign it to Money2sl
            myMoney2sl.inputSL();// calls input method and pass argument
            myMoney2sl.changeSL(); // calls change method
            System.out.println(); // output a blank line
         myMoney2sl.outputSL(); //calls outputSL to show results
    * Project Filename: Money2SL.java
    import java.util.Scanner;
    import java.util.Calendar;
    public class Money2sl
         Scanner input = new Scanner( System.in ); // create Scanner to obtain input from command window
        private double change,
                       amount; // instant variable, stores amount
        private double twentyD = 20.00;
        private double tenD = 10.0;
        private double fiveD = 5.0;
         private double dollar = 1.0;
         private double quarter = 0.25;
         private double dime = 0.10;
         private double nickel = 0.05;
         private double penny = 0.01;
         private double numTwentyD;
         private double numTenD;
         private double numFiveD;
         private double numDollar;
         private double numQuarter;
         private double numDime;
         private double numNickel;
         private double numPenny;
        // inputSL() method gets amount, checks to see if it is under $100, stores amount into variable
        public void inputSL() //input method
             Calendar dateTime = Calendar.getInstance(); // get current date and time
            //print date and time
            System.out.printf( "%s\n", "nothing" );
            System.out.printf( "%1$ta, %1$tB. %1$te, %1$tY %1$tr\n\n", dateTime );
             //print output
                System.out.println( "Please enter the amount of money (less than $100) that you will spend: ");  // prompt
              amount = input.nextDouble();
              while ( amount > 100 )
                  System.out.println( "error - enter amount less than $100");
                System.out.println( "Please enter the amount of money (less than $100) that you will spend: ");  // prompt
                  amount = input.nextDouble();
             } // end inputSL method
        // changeSL() calculates change from amount entered out of $100
         public void changeSL()
              change = 100 - amount; // calculate change
              while(change > 0)
            if ( change - fiveD >= 0 )
                        numFiveD ++;
                       change -= fiveD;
              if ( change - fiveD >= 0 )
                        numFiveD ++;
                       change -= fiveD;
              if ( change - dollar >= 0 )
                        numDollar++;
                       change -= dollar;
              if ( change - quarter >= 0 )
                        numQuarter ++;
                       change -= quarter;
              if ( change - dime >= 0 )
                        numDime ++;
                       change -= dime;
              if ( change - nickel >= 0 )
                       numNickel ++;
                       change -= nickel;
              if ( change - penny >= 0 )
                        numPenny ++;
                       change -= penny;
         } // end changeSL method
        //outputSL() displays original amount, change dollar amount, and change in individual bills and coins
        public void outputSL()
             System.out.printf( "$%.2f dollars will return $%.2f, which is: ",
                                 amount, change );
            System.out.println(); // blank line
             System.out.println(); // blank line
            if ( numTwentyD > 0 )
                 if ( numTwentyD > 1)
                      System.out.println( numTwentyD + " twenty dollar bills" );
                 System.out.println( numTwentyD + " twenty dollar bill" );
            if ( numTenD > 0)
                 if ( numTenD > 1 )
                      System.out.println( numTwentyD + " ten dollar bills" );
                 System.out.println( numTwentyD + " ten dollar bill" );
            if ( numFiveD > 0)
                 if ( numFiveD > 1 )
                      System.out.println( numFiveD + " five dollar bills" );
                 System.out.println( numFiveD + " five dollar bill" );
            if ( numDollar > 0)
                 if ( numDollar > 1 )
                      System.out.println( numDollar + " one dollar bills" );
                 System.out.println( numDollar + " one dollar bill" );
              if ( numQuarter > 0)
                 if ( numQuarter > 1 )
                      System.out.println( numQuarter + " quarters" );
                 System.out.println( numDollar + " quarter" );
              if ( numDime > 0)
                 if ( numDime > 1 )
                      System.out.println( numDime + " dimes" );
                 System.out.println( numDime + " dime" );
              if ( numNickel > 0)
                 if ( numNickel > 1 )
                      System.out.println( numNickel + " nickels" );
                 System.out.println( numNickel + " nickel" );
              if (numPenny > 0)
                 if ( numPenny > 1 )
                      System.out.println( numPenny + " pennies" );
                 System.out.println( numPenny + " penny" );
    }

  • Using variable from another method?

    Hi all, i have the code below and am getting error of:
    cannot find symbol
    symbol : variable myList
    location: class Driver
              myList.addFirst(nodeone);
    The areas noted are in bold, i want to seperate my code in the if statements into seperate methods which can be called, but when i do this i dont have access to the mylist variable. am i getting the right end of the stick? Hope someone can help. Thx
    import java.util.*;
    public class Driver
    public static void main(String args[])
    List myList = new List();
    System.out.println("COMMAND LIST");
    System.out.println("");
    System.out.println("addFirst - Inserts a node at the beginning of the list");
    System.out.println("addLast - Inserts a node at the end of the list");
    System.out.println("getFirst - Returns the first node in the list");
    System.out.println("getLast - Returns the last node in the list");
    System.out.println("");
         Scanner input = new Scanner(System.in);
         String command;
         System.out.print("Please enter a command: ");
         command = input.next();
         if (command.equals("addFirst"))
              inputAddFirst();
              else if (command.equals("addLast"))
                        String nodeName;
                        System.out.print("Enter name of Last Node: ");
                        nodeName = input.next();
                        Node nodelast = new Node(nodeName);
                        myList.addLast(nodelast);
                        System.out.println("Setting Last Node");
              public static void inputAddFirst()
              String nodeName;
              Scanner input = new Scanner(System.in);
              System.out.print("Enter name of First Node: ");
              nodeName = input.next();
              Node nodeone = new Node(nodeName);
              myList.addFirst(nodeone);
              System.out.println("Setting First Node");
    }

    You can pass myList to the method that uses it.
    Or, you can make inputAddFirst just return an object, and add it in main.
    Or you could make myList a field, rather than a local variable. If you do that however, you'd probably want the stuff in main to go into a new, non-static method. Also you shouldn't use fields for what are in essence temporary variables, so ask yourself whether myList really represents the ongoing state of whatever object it's in.

  • Pass a variable from a method to another

    Hello,
    how is it possible to use, in a method, a variable instanciated in another method? None of them is a constructor. I saw many examples in the tutorials with constructors, but there it's different...
    This is a piece of my program:
    String string_;
    String other;
    public String getName()throws IOException{
         byte[] input = new byte[50];
         System.out.println("give string_");
         System.in.read(input);
         String other = new String(input);
         other = other.trim();
         System.out.println("other = "+other);
         return other ;
    public String Native( ){
         System.out.println("other in Native() = "+ other);
         string_ = other;
         return string_;
    When I run it I get the answer:
    other in Native()= null
    So the value I gave to other didn't pass from getName() to Native()...
    How can I do that?

    Your code:
      String string_;
      String other;
      public String getName()throws IOException {
        byte[] input = new byte[50];
        System.out.println("give string_");
        System.in.read(input);
        String other = new String(input);
        other = other.trim();
        System.out.println("other = "+other);
        return other;
      public String Native() {
        System.out.println("other in Native() = "+ other);
        string_ = other;
        return string_;
      }change to:
      String string_;
      String other;
      public String getName()throws IOException {
        byte[] input = new byte[50];
        System.out.println("give string_");
        System.in.read(input);
        String other = new String(input);
        other = other.trim();
        System.out.println("other = "+other);
        return other;
      public String Native(String another_other) {
        System.out.println("other in Native() = "+ other);
        another_other+="\tanother_other";
        string_ = another_other;
        return string_;
      }You'll see the change. You want to pass somthing into Native specifically and change it locally, and see the difference, right? Well this is the way you pass something in.
    ~Bill

  • Problem calling servlet from doget method of another servlet

    hi,
    Iam trying to post an html form written in the doGet() method
    of a servlet to pass this information to another servlet's doPost() method. Iam giving the following URL:
    "<FORM ACTION=http://localhost:8080/examples/servlet/UpdateProcessServlet" +
    "METHOD=POST>"
    But its not happening,the error says that "the page cannot be found" The servlet is not getting called at all. would someboy please help me in this regard.
    Thanks

    #1 Iam calling servlet 2 from here
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    session=request.getSession(false);
    out.println
    (ServletUtilities.DOCTYPE +
    "<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>"+
    "<HTML>" +
    "<BODY>" +
    "<P CLASS=LARGER>" +
    "<FORM ACTION=http://localhost:8080/examples/servlet/UpdateProcessServlet METHOD=POST>"
    "<INPUT TYPE=SUBMIT NAME=submitButton Value=submit>" +
    "</BODY> " +
    "</HTML>" );
    #2 This should get called and print me "Iam in doPost method
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws ServletException,IOException
    url = "jdbc:odbc:Resume";
    System.out.println("Iam in doPost method");
    response.setContentType("text/html");
    out = response.getWriter();
    out.println("This is the last servlet for this project:");
    bool=false;
    check=false;
    Thank...:)

  • How to access (call) variables from multiple components

    I have what I think is a basic task, but I cant seem to get it to work.  I have a Flex project with one application.  In addition to the one application, I have many components that are used in the application.  These components vary from simple (a ComboBox) to complex (many sub-components).  What I need to do is define a viable in one component and access it in another component.  I can't seem to do this.  Below is an example of how I think it should be:
    Component1
    <mx:Script>
           <![CDATA[
            [Bindable]
            private var userID:int=0;
           ]]>
    </mx:Script>
    Component2
    <mx:TextInput  text="{Component1.userID}"/>
    Any help you can provide would be beneficial.
    Lee

    Hello,
         You may also want to consider using the mx.core method.
         In your main application script area define all of your public variables and functions. Then from your component, you can reference these absolutely with the following syntax.
    <!-- Main App -->
    [Bindable]
    public var userID:int;
    <!-- Component -->
    private function init():void {
         var com_UserID = mx.core.Application.application.userID;
    Using this method ensures that you will have access to any Function or variable within the scope of the project.
    Kind Regards,
    Dr. Ivan Alexander, Ph.D.
    Sr. Applications Engineer
    FlexAppsStore.com
    Sun Microsystems
    MySQL Enterprise Ready Partner 2009

  • Calling variables from a loop

    Hi
    I have 6 variables declaerd:
    b_banner0 iloug.iloug_activities.banner0%type;
    b_banner1 iloug.iloug_activities.banner1%type;
    b_banner2 iloug.iloug_activities.banner2%type;
    b_banner3 iloug.iloug_activities.banner3%type;
    b_banner4 iloug.iloug_activities.banner4%type;
    b_banner5 iloug.iloug_activities.banner5%type;
    i would like to loop through the variables and do with them something, is it possible to call the variables in a dynamic way, somthong like this:
    for i IN 0..5 loop
    if not(b_banner&#0124; &#0124;i IS NULL) then
    end if;
    end loop;i get an error message that b_banner has to be declared, apperantly, it doesnt understand the &#0124; &#0124; sign in this case, is there another way?
    Thx in advance
    Esther
    null

    Hy Esther in this case declare the vars as one PLSQL-Table/Varray, then you can use the for -loop efficient;
    Karl[
    QUOTE]Originally posted by Esther levin ([email protected]):
    Hi
    I have 6 variables declaerd:
    b_banner0 iloug.iloug_activities.banner0%type;
    b_banner1 iloug.iloug_activities.banner1%type;
    b_banner2 iloug.iloug_activities.banner2%type;
    b_banner3 iloug.iloug_activities.banner3%type;
    b_banner4 iloug.iloug_activities.banner4%type;
    b_banner5 iloug.iloug_activities.banner5%type;
    i would like to loop through the variables and do with them something, is it possible to call the variables in a dynamic way, somthong like this:
    for i IN 0..5 loop
    if not(b_banner| |i IS NULL) then
    end if;
    end loop;i get an error message that b_banner has to be declared, apperantly, it doesnt understand the | | sign in this case, is there another way?
    Thx in advance
    Esther
    null

Maybe you are looking for

  • I have a iphone 3G, I am trying to update my phone to the 4.2.1 update

    I have an iphone 3G, and I am trying to update my phone to the 4.2.1 software, when I begin to update my phone it tells me that all the files have to be backed up on my computer first.  The issue is my phone has been hooked up to my computer backing

  • Oracle Enterprise Manager is not coming up. (Urgent )

    Hi All, I have installed Oracle Weblogic 10.3.5 and Oracle SOA 11.1.1.5 and OSB 11.1.1.5 in Production Mode. Now i have started all the servers and they are up and running but i cannot open em , and in admin console -->Deployments --> em is in failed

  • 10g Streams with 9i and 8i DBs

    In one of the messages on this forum it was stated that Streams 9i supported Oracle 8i v6 databases and above. Does that still hold true with 10g Streams?

  • Has anyone used the 3M Ergonomic Mouse with Logic?

    I'm particularly interested in whether: (a) the *scroll function* works with Logic, and (b) does the simple, non-programmable 3-button design hinder the functionality of Logic?

  • Facetime starting multiple conversations at once?

    Hi guys, Whenever I try to Facetime my mom, it ends up calling both my mom and my dad. This never used to happen prior to updating to iOS 7. Any idea what might be wrong? Thanks