Demo program in tutorial can't give out expected result

I run DataIODemo.java from java tutorial
The output file has below content
@3�p��
=           J a v a T - s h i r t
@#��G�{                J a v a   M u g
@/��G�{        
     D u k e J u g g l i n g D o l l s
@���Q�           J a v a P i n
@���\(�      2      J a v a K e y C h a i n
It seems the program can't read long type values
Plz help
Below is the program's script
import java.io.*;
import java.lang.*;
public class iodemo {
public static void main(String[] args) throws IOException {
// write the data out
DataOutputStream out = new DataOutputStream(new
                    FileOutputStream("c:/numout.txt"));
double[] prices = { 19.99, 9.99, 15.99, 3.99, 4.99 };
int[] units = { 12, 8, 13, 29, 50 };
String[] descs = { "Java T-shirt",
               "Java Mug",
               "Duke Juggling Dolls",
               "Java Pin",
               "Java Key Chain" };
for (int i = 0; i < prices.length; i ++) {
out.writeDouble(prices);
out.writeChar('\t');
out.writeInt(units[i]);
out.writeChar('\t');
out.writeChars(descs[i]);
out.writeChar('\n');
out.close();
// read it in again
DataInputStream in = new DataInputStream(new
                    FileInputStream("c:/numout.txt"));
double price;
int unit;
StringBuffer desc;
double total = 0.0;
try {
while (true) {
price = in.readDouble();
                    System.out.println(price);
in.readChar(); // throws out the tab
unit = in.readInt();
in.readChar(); // throws out the tab
          char chr;
          desc = new StringBuffer(20);
          char lineSep = System.getProperty("line.separator").charAt(0);
          while ((chr = in.readChar()) != lineSep)
          desc.append(chr);
System.out.println("You've ordered " +
                    unit + " units of " +
                    desc + " at $" + price);
total = total + unit * price;
} catch (EOFException e) {
System.out.println("For a TOTAL of: $" + total);
in.close();

Try this,import java.io.*;
import java.lang.*;
import java.util.StringTokenizer;
public class iodemo {
     public static void main(String[] args) throws IOException {
          RandomAccessFile out = new RandomAccessFile("c:/test/numout.txt","rw");
          double[] prices = { 19.99, 9.99, 15.99, 3.99, 4.99 };
          int[] units = { 12, 8, 13, 29, 50 };
          String[] descs = { "Java T-shirt","Java Mug",
                              "Duke Juggling Dolls","Java Pin","Java Key Chain" };
          for (int i = 0; i < prices.length; i ++) {
               out.writeBytes(prices[i]+"\t");
               out.writeBytes(units[i]+"\t");
               out.writeBytes(descs[i]+"\n");
          out.close();
          // read it in again
          RandomAccessFile in = new RandomAccessFile("c:/test/numout.txt","r");
          double price;
          int unit;
          String desc;
          double total = 0.0;
          String line="";
          try {
               while ((line=in.readLine())!=null) {
                    StringTokenizer st = new StringTokenizer(line,"\t");
                    price = Double.parseDouble(st.nextToken());
                    unit = Integer.parseInt(st.nextToken());
                    desc = st.nextToken();
                    System.out.println("You've ordered " + unit + " units of " +
                         desc + " at $" + price);
                    total = total + unit * price;
          } catch (EOFException e) {
          System.out.println("For a TOTAL of: $" + total);
          in.close();
}Sudha

Similar Messages

  • Reoder point calculation don't give the expected result

    Dear friends,
    We are using CBP to set reorder point (MRP type is VM).
    We've set the planned delivery time, on MRP2 view, as 120 days.
    When we run the forecast, the calculated basic value gives the expected
    result, but the reorder point don't.
    As we've set Planned delivery time as 120 days, we expect that the
    reorder point is "basic value"*4 (4 is the result 120/30). But the result
    of the reorder point is is greater (aprox. "basic value"*4,5).
    Can you please give me a help on this matter?
    Many thanks,
    Afonso Pereira

    you may get your expected result if you would use VB instead of VM.
    Manual Reorder Point Planning
    In manual reorder point planning, you define both the reorder level and the safety stock level manually in the appropriate material master.
    Automatic Reorder Point Planning
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    Since the forecast is carried out at regular intervals, the reorder level and the safety stock level are continually adapted to the current consumption and delivery situation. This means that a contribution is made towards keeping stock levels low.

  • Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8

    Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8.  System is 3 years old.

    Are you running low on RAM..?
    see > Using Activity Monitor
    Is your Hard Drive getting full...?
    see > Freeing space on your Mac OS X startup disk
    Have you tried Repair Disk Permissions after upgrading Safari...?
    see > About Disk Utility's Repair Disk Permissions feature
    Reset Safari...?

  • Background program running and can't figure out what it is...

    I have an IMAC desktop, I just purchased the Photoshop Elements 10 software for MAC, installed it, running fine. But now I have program that is contanstly running in the background that is slowing up all of my other applications I run while I'm working. I've checked the Activity Monitor but I can't see anything out of the norm...Does anyone have any suggestions? I'm very frustrated....

    I presume you mean that the hard drive is working on something. Again, any such process would show in the Activity Monitor. Check that again, confirming that you have "all processes" set so you can see everthing that's going on. It will be easiest to spot anything unusual if you click on the "% CPU" column header to sort by the amount of CPU time each process is using. Click twice so that the arrow is pointing downwards; then the top users of CPU time will be listed at the top. Post the name of any process that's consistently or unexpectedly using a significant amount of CPU time and we can probably figure out what's happening and offer suggestions.
    Regards.

  • Every e-mail I get comes with a duplicate. I've tried looking at the different features of the program, but I can't figure out why this is happening. Help!

    This has been happening for several years now. After one of the updates, I started getting the duplicates. I've lived with problem for a long time because I could still get e-mails, if over abundantly. My e-mail volume has gone up and up, however, and I'm now getting 60 or 70 e-mails a day because of this problem. Can someone tell me how to fix this?

    I think I might have figured out what the problem is. I have inadvertently set up two Thunderbird accounts. When I followed your advice, I was able to open the pop folder. I also had a mail folder and opened it to find another pop folder. In both pop folders I found a popstate.dat file. When I went into account settings, I found that I had somehow set up two cbldw accounts. The one at the top said mail as incoming server. The second account showed pop as the incoming server. Now this is what perplexes me. Do I attempt to get rid of one of the accounts? I took both popstate.dat files out of the folders and put them on my desktop. When I went back into the two mail folders, behold, the popstate. dat files were still in the folder, having been altered at the time I took them out of the folders.
    I'm really in a quandary as to how to proceed. I'm not sure I can delete the second Thunderbird account without wrecking havoc on my primary e-mail source, and there are a few subtle differences in the two different preferences sections.
    Any helpful suggestions?

  • Simple program, getting error, can't figure out why

    Hello. I'm new to java and am having some trouble with this simple piece of code. When i compile DisplayObjStatsApplication I get:
    DisplayObjStatsApplication.java [6:1] cannot resolve symbol
    symbol : variable height
    location: class ObjStats
    box1.height = 60;
    ^
    DisplayObjStatsApplication.java [7:1] cannot resolve symbol
    symbol : variable weight
    location: class ObjStats
    box1.weight = 50;
    ^
    DisplayObjStatsApplication.java [8:1] cannot resolve symbol
    symbol : variable depth
    location: class ObjStats
    box1.depth = 20;
    ^
    3 errors
    Errors compiling DisplayObjStatsApplication.
    Here is the code for ObjStats.java:
    public class ObjStats {
    public ObjStats() {
    int height, weight, depth;
    And here is the code for DisplayObjStatsApplication:
    public class DisplayObjStatsApplication {
    public static void main(String[] args) {
    ObjStats box1 = new ObjStats();
    box1.height = 60;
    box1.weight = 50;
    box1.depth = 20;
    What am I doing wrong?
    Thanks

    hi,
    i am new to java too!!!!!!
    maybe you can use some "setter' and "getter" methods!!!!!!!
    Here is the code for ObjStats.java:
    public class ObjStats {
    int height;
    int weight;
    int depth;
    public ObjStats() {
        this.height=0;
        this.weight=0;
        this.depth=0;
    public setHeight(int height) {
       this.height=height;
    public setWeight(int weight) {
       this.weight=weight;
    public setDepth(int depth) {
       this.depth=depth;
    public getHeight() {
       return height;
    public getWeight() {
       return weight;
    public getDepth() {
       return depth;
    And here is the code for DisplayObjStatsApplication:
    public class DisplayObjStatsApplication {
    public static void main(String[] args) {
    ObjStats box1 = new ObjStats();
    box1setHeight(60) ;
    box1.setWeight(50);
    box1.setDepth(20);
    System.out.println("The height of the box is " + box1.getHeight());
    System.out.println("The weight of the box is " + box1.getWeight());
    System.out.println("The depth of the box is " + box1.getDepth());
    }

  • AEBS can't give out full speeds

    Hi I've just gotten a 50mb Internet Connection with Virgin.
    When using the latest AEBS on the wireless N network I can only get speeds up to 20mb wirelessly but when using the wireless N router virgin provide I can get up to 53mb wirelessly.
    Why can't the AEBS do the same?

    Try this,import java.io.*;
    import java.lang.*;
    import java.util.StringTokenizer;
    public class iodemo {
         public static void main(String[] args) throws IOException {
              RandomAccessFile out = new RandomAccessFile("c:/test/numout.txt","rw");
              double[] prices = { 19.99, 9.99, 15.99, 3.99, 4.99 };
              int[] units = { 12, 8, 13, 29, 50 };
              String[] descs = { "Java T-shirt","Java Mug",
                                  "Duke Juggling Dolls","Java Pin","Java Key Chain" };
              for (int i = 0; i < prices.length; i ++) {
                   out.writeBytes(prices[i]+"\t");
                   out.writeBytes(units[i]+"\t");
                   out.writeBytes(descs[i]+"\n");
              out.close();
              // read it in again
              RandomAccessFile in = new RandomAccessFile("c:/test/numout.txt","r");
              double price;
              int unit;
              String desc;
              double total = 0.0;
              String line="";
              try {
                   while ((line=in.readLine())!=null) {
                        StringTokenizer st = new StringTokenizer(line,"\t");
                        price = Double.parseDouble(st.nextToken());
                        unit = Integer.parseInt(st.nextToken());
                        desc = st.nextToken();
                        System.out.println("You've ordered " + unit + " units of " +
                             desc + " at $" + price);
                        total = total + unit * price;
              } catch (EOFException e) {
              System.out.println("For a TOTAL of: $" + total);
              in.close();
    }Sudha

  • Where are the pro*c demo programs

    Hi,
    I've installed both the 10gRel2 database and application server on Redhat.
    Both of these have precompiler directories (.../precomp ), but no pro*c demo files.
    Please can anyone point out how do get some demo files so I can test the environment? (Both *.pc and the makefile would be great)
    Many thanks
    Tony

    OK, found the demo directory.
    You need to install the database companion CD to get it.

  • How to Find Out the Result

    Hello All!
    We have a BarCode Reader Machine to Record Employee IN/OUT-Time (Attendence). Dedicated Person Swaps the Card in Machine for the attendence. Because of Reading/Technical Problem, It might be possible to swap the card twice or more for an Employee.
    In Below data, Type:"0" is representing Employee Out-Time and Type:"1" is representing Employee In-Time.
    EMP ID       NAME               TYPE  DATED      TIME
    18000001  MUHAMMAD AWAIS  0     3/16/2006  6:15:31
    18000001  MUHAMMAD AWAIS  1     3/16/2006  19:58:00
    18000001  MUHAMMAD AWAIS  0     3/17/2006  6:14:33
    18000001  MUHAMMAD AWAIS  1     3/17/2006  19:58:07
    18000001  MUHAMMAD AWAIS  0     3/18/2006  7:23:47
    18000001  MUHAMMAD AWAIS  1     3/18/2006  20:21:50
    18000001  MUHAMMAD AWAIS  1     3/18/2006  20:22:10
    18000001  MUHAMMAD AWAIS  0     3/19/2006  7:24:23
    18000001  MUHAMMAD AWAIS  1     3/19/2006  20:05:34
    18000001  MUHAMMAD AWAIS  0     3/20/2006  7:08:35
    18000001  MUHAMMAD AWAIS  1     3/20/2006  20:04:23
    18000001  MUHAMMAD AWAIS  0     3/20/2006  22:10:15
    18000001  MUHAMMAD AWAIS  1     3/21/2006  8:54:53
    18000001  MUHAMMAD AWAIS  0     3/21/2006  19:32:53
    18000001  MUHAMMAD AWAIS  1     3/22/2006  9:02:40
    18000001  MUHAMMAD AWAIS  0     3/22/2006  19:42:09
    18000001  MUHAMMAD AWAIS  1     3/23/2006  6:54:21
    18000001  MUHAMMAD AWAIS  0     3/23/2006  20:14:15
    18000001  MUHAMMAD AWAIS  1     3/24/2006  7:52:08
    18000001  MUHAMMAD AWAIS  0     3/24/2006  19:51:42 How can I manage this data to represent an Attendence Sheet also How can I find out this result from a Simple Query / Procedure ?
    EMP ID    NAME               DATEIN     TIMEIN    DATEOUT       TIMEOUT
    18000001  MUHAMMAD AWAIS                       3/16/2006  6:15:31
    18000001  MUHAMMAD AWAIS  3/16/2006  19:58:00  3/17/2006  6:14:33
    18000001  MUHAMMAD AWAIS  3/17/2006  19:58:07  3/18/2006  7:23:47
    18000001  MUHAMMAD AWAIS  3/18/2006  20:22:10  3/19/2006  7:24:23
    18000001  MUHAMMAD AWAIS  3/19/2006  20:05:34  3/20/2006  7:08:35
    18000001  MUHAMMAD AWAIS  3/20/2006  20:04:23  3/20/2006  22:10:15
    18000001  MUHAMMAD AWAIS  3/21/2006  8:54:53   3/21/2006  19:32:53
    18000001  MUHAMMAD AWAIS  3/22/2006  9:02:40   3/22/2006  19:42:09
    18000001  MUHAMMAD AWAIS  3/23/2006  6:54:21   3/23/2006  20:14:15
    18000001  MUHAMMAD AWAIS  3/24/2006  7:52:08   3/24/2006  19:51:42Thanks in Advance

    I haven't got time to work it out for a night shift which is what you want, but here's a starting point for you...
    SQL> WITH t AS (
      2  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/16/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('6:15:31','HH
    24:MI:SS') AS TIME FROM DUAL UNION
      3  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/16/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('19:58:00','H
    H24:MI:SS') AS TIME FROM DUAL UNION
      4  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/17/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('6:14:33','HH
    24:MI:SS') AS TIME FROM DUAL UNION
      5  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/17/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('19:58:07','H
    H24:MI:SS') AS TIME FROM DUAL UNION
      6  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/18/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('7:23:47','HH
    24:MI:SS') AS TIME FROM DUAL UNION
      7  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/18/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('20:21:50','H
    H24:MI:SS') AS TIME FROM DUAL UNION
      8  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/18/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('20:22:10','H
    H24:MI:SS') AS TIME FROM DUAL UNION
      9  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/19/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('7:24:23','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    10  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/19/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('20:05:34','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    11  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/20/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('7:08:35','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    12  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/20/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('20:04:23','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    13  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/20/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('22:10:15','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    14  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/21/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('8:54:53','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    15  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/21/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('19:32:53','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    16  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/22/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('9:02:40','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    17  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/22/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('19:42:09','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    18  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/23/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('6:54:21','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    19  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/23/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('20:14:15','H
    H24:MI:SS') AS TIME FROM DUAL UNION
    20  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 1 AS TYPE, TO_DATE('3/24/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('7:52:08','HH
    24:MI:SS') AS TIME FROM DUAL UNION
    21  SELECT 18000001 AS EMP, 'MUHAMMAD AWAIS' AS NAME, 0 AS TYPE, TO_DATE('3/24/2006', 'MM/DD/YYYY') AS DATED, TO_DATE('19:51:42','H
    H24:MI:SS') AS TIME FROM DUAL)
    22  SELECT emp, name, max(time_in) as time_in, max(time_out) as time_out
    23  FROM (
    24      SELECT emp, name, timest, decode(type, 0, timest) as time_out, decode(type,1,timest) as time_in
    25      FROM (
    26        SELECT emp, name, type, timest, row_number() over (partition by trunc(timest), type order by trunc(timest), type, timest
    desc) as rn
    27        FROM (select emp, name, type, to_date(to_char(dated, 'MM/DD/YYYY')||' '||to_char(time, 'HH24:MI:SS'), 'MM/DD/YYYY HH24:MI
    :SS') AS timest FROM t)
    28        ) x
    29      WHERE rn = 1 -- removes duplicate entries per day
    30      ORDER BY trunc(timest), type, timest desc
    31      )
    32  GROUP BY emp, name, trunc(timest)
    33  ORDER BY emp, trunc(time_in);
           EMP NAME           TIME_IN             TIME_OUT
      18000001 MUHAMMAD AWAIS 16/03/2006 19:58:00 16/03/2006 06:15:31
      18000001 MUHAMMAD AWAIS 17/03/2006 19:58:07 17/03/2006 06:14:33
      18000001 MUHAMMAD AWAIS 18/03/2006 20:22:10 18/03/2006 07:23:47
      18000001 MUHAMMAD AWAIS 19/03/2006 20:05:34 19/03/2006 07:24:23
      18000001 MUHAMMAD AWAIS 20/03/2006 20:04:23 20/03/2006 22:10:15
      18000001 MUHAMMAD AWAIS 21/03/2006 08:54:53 21/03/2006 19:32:53
      18000001 MUHAMMAD AWAIS 22/03/2006 09:02:40 22/03/2006 19:42:09
      18000001 MUHAMMAD AWAIS 23/03/2006 06:54:21 23/03/2006 20:14:15
      18000001 MUHAMMAD AWAIS 24/03/2006 07:52:08 24/03/2006 19:51:42
    9 rows selected.
    SQL>

  • I have a fully paid subscription to CC and use of installed programs but I can no longer sign in to CC. It repeatedly says "You've been signed out". I have the need to install another program but I can't sign in.

    I have a fully paid subscription to CC and use of installed programs but I can no longer sign in to CC. It repeatedly says "You've been signed out". I have the need to install another program but I can't sign in.

    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html

  • Can't figure out how to stop my MBP from opening programs at startup, namely word and messages

    Recenty my MBPro has started opening MS Word and Messages at startup and I can't figure out how to stop it?  I've tried selecting and de-selcting the startup option from the dock but this doesn't help.  Does anyone have any suggestions?

    System Preferences has a setting for this.
    In the Users & Groups section you will fine a "Login Items" header.  This is a list of all the programs that will open automatically when you log in.  You can select any program and click the [--] button below that window to stop the program from opening automatically.

  • On my app store I what to update an app but the e-mail is my husband it in a light color making it so I can't change it to my e-mail address. It ask for a password can't give one because of the e-mail how do I change this I'm lock out?

    On my app store I what to update an app but the e-mail is my husband it in a light color making it so I can't change it to my e-mail address. It ask for a password can't give one because of the e-mail how do I change this I'm lock out?

    This is your husband's app, only your husband can update it. Apps are forever tied to the Apple ID that purchased them. No other Apple ID can update someone else's app.

  • HT5621 I recently changed my apple id email from an old one to a new one and now I can't sign out of my old one on my iPhone 5 because it says I need a password. I cannot give that password because it is part of the old apple ID. How do I change IDs?

    I recently changed my apple id email from an old one to a new one and now I can't sign out of my old one on my iPhone 5 because it says I need a password. I cannot give that password because it is part of the old apple ID. How do I change IDs?

    Hi sharonpalencia, 
    Welcome to the Apple Support Communities!
    I understand it can be very frustrating when you cannot sign in, or sign out in this case, to your Apple ID. In this situation you may need to temporarily edit your Apple ID back to the original email address so that you can sign out. Once signed out, edit the Apple ID back to the new email address and sign in. Please use the attached article for further information. 
    If you're asked for the password to your previous Apple ID when signing out of iCloud
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
    Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    If you're still asked for your previous Apple ID password, continue to the next step.
    Have a great day, 
    Joe

  • How can I delete or remove my apple account ID from iPhone i want to sell or give out as a gift?

    how can I delete or remove my apple account ID from an iPhone I want to sell or give out as a gift?

    You didn't see this bit?
    "Your content won't be deleted from iCloud when you erase your device."
    You only lose iCloud data from other devices if you manually delete the data. If you Erase all content and data, you keep iCloud data elsewhere.

  • How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    If you bought a CC for team, you can log in at http://adobe.com and insert the e-mail that you gave at the moment at the purchase and than you can manage and see you product/plan/team.
    If I was not clear you can use the following link to help you solving your issue:
    Creative Cloud Help | Manage your Creative Cloud for teams membership
    If your not clear about this situation, contact with an agent of Adobe, by chat or phone. Use the following link to see the type of support you have on this matter:
    http://adobe.com/getsupport
    I think this will help you.
    Regards

Maybe you are looking for

  • How to check data sent by XI in the SAP system?

    Hi All, I have a File to Proxy scenario. I have generated and activated the proxy. The scenario got executed successfully. Now, how can I check the data being sent by XI in the SAP system? Kindly help. Thanks, Karthik

  • Problem using JDBC connection

    I'am using 9iAS R2 and I have a entity bean using a DataSource with out any problem, but I also have a client program using the same datasource. I can lookup the datasource without any problems, I get a connection, but when I try to createStatement()

  • Sample implementation of Transport-level security for Oracle Service Bus (O

    I have a custom authentication library external to OSB. How can I secure transport channel (JMS/EJB/etc) using external java api. Is there some sample implementation of this out there. Thank you - version I am using is 11g

  • Help with re-downloading photoshop elements

    I have already purchased photoshop elements and need to re-download.  Can someone please let me know how to do that. Thank you so much.

  • Avoiding using instanceof operator

    I've heard that using the instanceof operator isn't such a great code technique, and since I'm in the design phase, I feel like I should be able to avoid this. Right now, part of my design requires use of the instanceof operator as well as casting. L