PP- PM Integeration

Hi,
My requirement is as follows
I have an equipment for which I need to have a Maintenance work for every 24hrs.
My requirement is I have a production order to produce say 1000000 items.
The machine capacity is 24 items in a day. (Machine produces 1 item / Hr)
I need to have a maintenance activity on that machine for every 24 hrs irrespective of number of items produced.
I think it can be mapped with PP / PM Integration.
I created this machine as an PRT Equipment by assigning PP work center in Location data and PM Work center in Structure.
I created a Eq Task list and Created a Plan saying for 24hrs a maintenance order with the defined task list.
I assigned this PRT Eq in PP Routing also.
But while in Planned order the scheduled Maintenance activity doesnu2019t reflecting the time.
It is showing only PP Scheduling ( In PP Order it is displaying the PRT information but not the planned timing which I am expecting after every 24 hrs !
Why it is happening? Where I am missing any assignment?
Plz guide meu2026..

hi
See if you assign PP work center in the location data and created maintenance plan for that equipment with system conditon as "Not in operation" in the maintenance order header,then while creating the PP order system will show the maintenance order no indicating maintenance work is planned for the machine in which production is to be carried out.
what is the exact requirement , as explained above it is just for information to PP person where they can discuss with PM person for sorting out .vice versa
if you want to carry out maintenance activity daily then create an maintenance plan with cycle length as 1 day and do the scheduling which will create a maintenance order daily
regards
thyagarajan

Similar Messages

  • Using integers/characters as bookmarks in rtf document

    first of all, i am self taught (ie i know practically nothing)
    i am trying to write an application which includes a database and produces standard letters with individual clients' details inserted. it is driving me insane.
    i am using rtf files and the code below (part of which i stole off the internet) copies everything just fine
    the code below works ok for a limited number of 'fields' - the integers in the 'switch' apply to characters such as # $ [ and they seem to be the integers the code uses.......(the code inserts my fields as it should)
    and this is where my ignorance kicks in big-time - i have tried everything, putting the character itself into the switch instead of the integer, using Unicode symbols - to expand the range so i can use more 'fields' - but i have to confess i am really out of my depth, i don't really understand Unicode........
    for example, i have tried using 'à' as an example, but no matter whether i use the integer (the default one recovered from the rtf document by this code), the character itself, or the Unicode value........the code just ignores it, does not insert the field i require, instead just re-types the à in the copy document.
    tall order, but is there any simple way for me to have a much wider range of 'bookmarks' so i can insert fields?
    void doLetter(String lettCode, Client client, Defendant defendant)
    FileReader in = null;
    out = null;
    currClient = client;
    currDefendant = defendant;
    lett = lettCode;
    try
    File inputFile = new File("C:\\testBill\\" + lett + ".rtf");
    in = new FileReader(inputFile);
    out = new FileWriter(createPath(lett));
    int c;
    while ((c = in.read()) != -1)
    System.out.print(" " + c);
    if (insertField(c)) continue;
    out.write(c);
    catch (Exception io)
    System.out.println(io.getMessage());
    finally
    try
    in.close();
    out.close();
    catch (Exception ex)
    System.out.println(ex.getMessage());
    private boolean insertField(int d) throws Exception
    int a = d;
    switch(a)
    case 35: doField(currClient.getTitle());
    return true;
    case 36: doField(currClient.getFirstName());
    return true;
    case 91: doField(currClient.getLastName());
    return true;
    case 93: doField(currClient.getFirstAddress());
    return true;
    case 126: doField(currClient.getSecondAddress());
    return true;
    case 95: doField(currClient.getThirdAddress());
    return true;
    case 94: doField(currClient.getFourthAddress());
    return true;
    case 124: doField(currClient.getPostCode());
    return true;
    case 33: doField(currDefendant.getPPI());
    return true;
    case 64: doField(currDefendant.getLastName());
    //System.out.println(currDefendant.getLastName());
    return true;
    return false;
    private void doField(String champ) throws Exception
    String whatever = champ;
    char cbuf[] = whatever.toCharArray();
    out.write(cbuf);
    }

    hi mel
    first of all thanks for taking the trouble to answer my query. i am rather embarrassed on two counts - first for the mistake in my code (i did admit to ignorance after all) and secondly that i seem to have found an answer to my problem - after about 3 months of tearing out what hair i have, perhaps posting here galvanised me, i don't know.
    re your solution, yes i could switch happily between the characters themselves, the integers the rtf document seemed to be using (cp1252 or something like that?) and unicode symbols, but the problem was the code was only recognising certain symbols, such as $ and [, but it steadfastly refused to recognise (and therefore act upon) the accented a character (and every other character which was not a letter or a number), which effectively left me with about 12 fields to play with in my standard letters.
    anyway, this seems to be working!:
    int c;
    while ((c = in.read()) != -1)
    System.out.print(" " + c);
    if (c == '%')
    char cbuf[] = new char[3];//in my rtf document i am using %001, %002 etc
    cbuf[0] = (char)in.read();
    cbuf[1] = (char)in.read();
    cbuf[2] = (char)in.read();
    if (insertField(Integer.parseInt(new String(cbuf)))) continue;
    out.write(c);
    catch (Exception io)
    System.out.println(io.getMessage());
    finally
    try
    in.close();
    out.close();
    catch (Exception ex)
    System.out.println(ex.getMessage());
    private boolean insertField(int d) throws Exception
    int a = d;
    switch(a)
    case 1: doField(currClient.getTitle());//35 - these are integers i was using previously
    return true;
    case 2: doField(currClient.getFirstName());//36
    return true;
    case 3: doField(currClient.getLastName());//91
    return true;
    case 4: doField(currClient.getFirstAddress());//93
    return true;
    etc
    i just have to make sure i have no %s in my standard letters, otherwise i should use some other symbol. i will now worry until i am sure you are not going to point out why this will not work long term, but it seems to have worked so far and has helped expand my armoury of fields..........
    thanks once again for your help
    ant

  • Unable to launch Integeration Builder - Java Web Start - Unexpected Error

    Hi there,
    I am not able to launch the Integeration builder. The ESR has no problem and is working fine though.
    Here is the exception :- com.sap.aii.ibdir.gui.appl.ApplicationImpl
    I have tried below options already :
    1. Cleared the java cache under - javaws -logviewer
    2. Go into administration and inside Directory --> Java Web Start Administration clicked "Restore archives and generate new sign."
    Strange part is some of my colleagues here doesnt have any issue while opening the Integeration Builder. In fact I dont have any such issue in QA and PROD environment. The issue is only in DEV environment. Please advice.
    Anshul

    Hello,
    Usually restoring the archives will help resolve the issue.
    If the issue is occurring for just yourself maybe you could check that you are using the correct java version. e.g. for for 7. 1 java version 5
    Also please refresh the Java Web Start:
    If it's a Windows terminal, select Start - Run - javaws to launch Java Web Start and then clear the cache. File -> preferences ->
    advanced -> clear folder button
    If you have later versions of Java and doing the
    Start -> Run doesn't give you anything, then select Start - Run and type Control and hit Enter. Double-click Java in the list
    that displays to view the more up-to-date Java Control Panel. In the General tab, select Settings from the Temporary Internet Files section. Click Delete Files to clear the cache and then log into the Integration Builder again (download will be longer as jars will be cached locally again).
    If the problem still remains I would advise to check that the latest patches have been applied for XI_TOOL, and also the other components MESSAGING  SAP-XIAFC SAP_XIAF SAP_XIESR SAP_XIGUI
    Regards,
    Sarah

  • Reading strings and integers from a text file

    I want to read the contents of a text file and print them to screen, but am having problems reading integers. The file contains employee's personal info and basically looks like this:
    Warren Laing
    32 //age, data type is int
    M //gender, data type is String
    Sharon Smith
    44
    F
    Here's what I've done so far. The method should continue reading the file until there's no lines left. When I call it from main, I get a numberFormatException error. I'm not sure why because the data types of the set and get methods are correct, the right packages have been imported, and I'm sure I've used Integer.parseInt() correctly (if not, pls let me know). Can anyone suggest why I'm getting errors, or where my code is going wrong?
    many thanks
    Chris
    public void readFile() throws IOException{
    BufferedReader read = new BufferedReader(new FileReader("personal.txt"));
    int age = 0;
    String input = "";
    input = read.readLine();
    while (input != null){
    setName(input);
    age = Integer.parseInt(input);
    setAge(age);
    input = read.readLine();
    setGender(input);
    System.out.println("Name: " + getName() + " Age: " + getAge() + " Gender: " + getGender());
    read.close();

    To answer your question - I'm teaching myself java and I haven't covered enumeration classes yet.
    With the setGender("Q") scenario, the data in the text file has already been validated by other methods before being written to the file. Anyway I worked out my problems were caused by "input = read.readLine()" being in the wrong places. The code below works fine though I've left out the set and get methods for the time being.
    Chris
    public static void readFile()throws IOException{
    String name = "";
    String gender = "";
    int age = 0;
    BufferedReader read = new BufferedReader(new FileReader("myfile.txt"));
    String input = read.readLine();
    while(input != null){
    name = input;
    input = read.readLine();
    gender = input;
    input = read.readLine();
    age = Integer.parseInt(input);
    input = read.readLine();
    System.out.println("Name: " + name + " Gender: " + gender + " Age: " + age);
    read.close();

  • Convert integers to equivalent characters in string - NOT ASCII code character

    I have to output my data and associated string information to a string array and then to a spreadsheet file.
    I want to do this by converting integers (and other numbers) to an identical string of characters.
    I have tried Type Cast with a string constant as the type input but it DOES NOT WORK.  Instead, I get the ASCII character whose numerical designation matches the integer, e.g. integer "50" become capital "P".
    I want integer "50" to be string "50".
    Please advise and no, I do not want to make arrays of clusters.
    Solved!
    Go to Solution.

    I found my answer but only after searching for "Number" conversion rather than "Integer" conversions.
    In the Programming palette  - String Functions - String/Number Conversion - Number to Decimal String:
    "Converts number to a string of decimal digits at least width characters wide or wider if necessary. If number is floating-point, it is rounded to a 64-bit integer before conversion."

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • I need to get 2 decimal places when using a formula for a quotient and Numbers will only give me whole integers which is useless since most items will be less than 1. How can I change this?

    How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places

    the quotient function returns only whole number portion of the dividing two numbers.  If you want the actual decimal value use the divide operator.  you enter this as:
    A/B
    if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
    =A1/B1

  • Inserting integers in a Linked list/List in Java

    Please solve the following problem using Java.
    Problem: Write a program that inserts 25 random integers from 0 to 100 in order in a linked list object. The program should calculate the sum of the elements and the floating-point average of the elements.
    Thanks
    Ripon

    do the following 25 times
    . insert random value between x and y into my list
    All you have to do is replace x and y with your values and compile using the java -idiot option.

  • Validation on integers

    Hi,
    Can any one help me with a validation on an item that only accept integers. The Item is not a column in de table.
    ekas

    couldn't this be better achieved on a client side validation?
    anyway
    WITH t AS (SELECT '123E' txt FROM DUAL
               UNION ALL
               SELECT '123' FROM DUAL
               UNION ALL
               SELECT 'E123' FROM DUAL
               UNION ALL
               SELECT 'E' FROM DUAL
               UNION ALL
               SELECT '1.23' FROM DUAL)
    SELECT txt,
           CASE REGEXP_REPLACE (txt, '[^[:digit:]]')
              WHEN txt THEN 'Integer'
              ELSE 'not Integer'
           END
              int_indicator
      FROM t
    TXT,INT_INDICATOR
    123E,not Integer
    123,Integer
    E123,not Integer
    E,not Integer
    1.23,not Integer

  • Constructing a linked list from an array of integers

    How do I create a linked list from an array of 28 integers in a constructor? The array of integers can be of any value that we desire. However we must use that array to test and debug methods such as getFirst(), getLast(), etc...
    I also have a method int getPosition(int position) where its suppose to return an element at the specified position. However, I get an error that says cannot find symbol: variable data or method next()
    public int getPosition(int position){
         LinkedListIterator iter=new LinkedListIterator();
         Node previous=null;
         Node current=first;
         if(position==0)
         return current.data;
         while(iter.hasMore()){
         iter.next();
         if(position==1)
         return iter.data;
         iter.next();
         if(position==2)
         return iter.data;
         iter.next();
         if(position==3)
         return iter.data;
         iter.next();
         if(position==4)
         return iter.data;
         iter.next();
         if(position==5)
         return iter.data;
         iter.next();
         if(position==6)
         return iter.data;
         iter.next();
         if(position==7)
         return iter.data;
         iter.next();
         if(position==8)
         return iter.data;
         iter.next();
         if(position==9)
         return iter.data;
         iter.next();
         if(position==10)
         return iter.data;
         iter.next();
         if(position==11)
         return iter.data;
         iter.next();
         if(position==12)
         return iter.data;
         iter.next();
         if(position==13)
         return iter.data;
         iter.next();
         if(position==14)
         return iter.data;
         iter.next();
         if(position==15)
         return iter.data;
         iter.next();
         if(position==16)
         return iter.data;
         iter.next();
         if(position==17)
         return iter.data;
         iter.next();
         if(position==18)
         return iter.data;
         iter.next();
         if(position==19)
         return iter.data;
         iter.next();
         if(position==20)
         return iter.data;
         iter.next();
         if(position==21)
         return iter.data;
         iter.next();
         if(position==22)
         return iter.data;
         iter.next();
         if(position==23)
         return iter.data;
         iter.next();
         if(position==24)
         return iter.data;
         iter.next();
         if(position==25)
         return iter.data;
         iter.next();
         if(position==26)
         return iter.data;
         iter.next();
         if(position==27)
         return iter.data;
         iter.next();
         if(position==28)
         return iter.data;
         if(position>28 || position<0)
         throw new NoSuchElementException();
         }

    How do I create a linked list from an array of 28 integers
    in a constructor? In a LinkedList constructor? If you check the LinkedList class (google 'java LinkedList'), there is no constructor that accepts an integer array.
    In a constructor of your own class? Use a for loop to step through your array and use the LinkedList add() method to add the elements of your array to your LinkedList.
    I get an error that
    says cannot find symbol: variable data or method
    next()If you look at the LinkedListIterator class (google, wait for it...."java LinkedListIterator"), you will see there is no next() method. Instead, you typically do the following to get an iterator:
    LinkedList myLL = new LinkedList();
    Iterator iter = myLL.iterator();
    The Iterator class has a next() method.

  • Problem in reading integers data

    hi all,
    i'm reading integers from console and storing them in a file and then reading back, but my data is inconsistent.can anybody tell me the reason for this.
    heres my code snippet...
    DataInputStream in = new DataInputStream(System.in);
              DataOutputStream out = new DataOutputStream(new FileOutputStream("intdata.txt"));
              try{
                   int a = in.readInt();
                   out.writeInt(a);
                   out.close();
                   in.close();
              }catch(EOFException eofe){
                   throw new RuntimeException(eofe);
              DataInputStream in2 = new DataInputStream(new FileInputStream("intdata.txt"));
              System.out.println(in2.readInt());
              in2.close();

    The whole problem here is in that last phrase "a readInt() function which should function exactly as i'm expecting." What it actually does do in the posted code is sit there doing nothing, or rather it waits for more input. It's doing exactly what its API documentation says it will do.
    But you say it "should function exactly as i'm expecting." Now unless you pay Sun a very, very big sum of money DataInputStreams are going to go on behaving as documented in the API. That isn't going to change. You had better change what you are expecting.
    If you throw a String like "58" at a DataInputStream readInt() will not produce 58. (And nowhere in the documentation of the class does it suggest it will.) What it will do - and I've tried this - is sit there and do nothing. This was sort of what Ceci was getting at by "Broken As Designed". It's not that DIS is broken, after in2 (see below) works fine. But using it to read keyboard input is a Bad Thing.
    Having changed what we expect, we need to rethink that "apart from parseInt" bit. We need a plan B, and here it is. We are reading a string (a bunch of characters such as people produce when they hammer a keyboard) - so we'll use a Reader. We want an entire line, so we'll make it a BufferedReader and use its readline() method. And we want to obtain an int from that string, which pretty much suggests ... parseInt().
    At any rate, that's my suggestion! Something along the lines of:import java.io.BufferedReader;
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.EOFException;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStreamReader;
    public class Test {
        public static void main(String[] args) throws Exception {
            //DataInputStream in = new DataInputStream(System.in);
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            DataOutputStream out = new DataOutputStream(new FileOutputStream("intdata.txt"));
            try{
                //int a = in.readInt();
                int a = Integer.parseInt(in.readLine());
                     * Add this line to see what int the DataInputStream
                     * is creating based on your "85"
                System.out.println("The number I typed in was " + a);
                out.writeInt(a);
                out.close();
                 //in.close();
            } catch(EOFException eofe) {
                throw new RuntimeException(eofe);
            DataInputStream in2 = new DataInputStream(new FileInputStream("intdata.txt"));
            System.out.println(in2.readInt());
            in2.close();
    }Which results in58
    The number I typed in was 58
    58

  • Mapping some integers

    hello
    I have this code below which maps out my string keys with string values; once it has maped them out it gets the string keys in the order that they are maped out at.
    my problem is that i want to map some integers out with them ( int keys[]={0,1,2,3,4,5,6,7,8,9} )
    How would i do this?
    please help me
    nicky
    Hashtable ht2 = new Hashtable();
    //Add vector to store results
    Vector results2 = new Vector();
    Object value2 = null;
    String keys2[] = {"FirstName", "LastName", "Id", "Addr1", "Phone","County", "Postcode", "Country", "Addr2", "Town"};
    //System.out.println(keys2);
    String values2[] = {"ben", "ben", "ben", "mum", "ben","mum", "ben", "ben", "mum", "mum"};
    // First, map keys to values in a hashtable
    Hashtable hash2 = new Hashtable();
    // the code matches values one by one for each of the keys
    for(int i = 0; i < keys2.length; i++) {
    hash2.put(keys2, values2[i]);
    // Then we find each value and remove it from the hashtable
    for(int j = 0; j < values2.length; j++) {
    ht2 = (hash2);
    value2 = (values2[j]);
    Vector v = new Vector();
    if( ht2.containsValue( value2 )) {
    Enumeration e = ht2.keys();
    while (e.hasMoreElements()) {
    String tempkey2 = (String)e.nextElement();
    String tempvalue2 = (String)ht2.get(tempkey2);
    if (tempvalue2.equals(value2)) {
                             v.add(tempkey2);
                             ht2.remove(tempkey2);
    results2.add(v);

    As you probably know you cannot use integers as keys in your Hashtable object, because the keys have to be objects and int is a primitive type, not an object.
    Use the Integer wrapper class:
    Hashtable ht = new Hashtable();
    ht.put(new Integer(1), "number one");
    ht.put(new Integer(2), "number two");
    To lookup a string:
    int key = 2;
    String value = (String)ht.get(new Integer(key));
    Jesper

  • DNG SDK thinks 0xFFFFFFFF is invalid white level for 32 bit integers

    As discussed in another message the DNG SDK does not seem to be able to write floating point DNGs. Since I need higher dynamic range than a 16 bit sample I instead went for 32 bit integers.
    This works, and I manage to create a file but when I run dng_validate on it it says the white level is invalid. The white level I have of course set to 0xFFFFFFFF to make use of the full 32 bit range. Looking into the code in dng_ifd.cpp where this test is made it seems like the default max white level is set to 65535.0 and the file's white level is compared against that, regardless if the sample type is 16 or 32 bit. This means that I can only make use of 16 bits of the 32 bit integer which seems kind of strange. Looking into the DNG spec I don't see anything there that forbids using the full 32 bit range of 32 bit samples. So this looks like a bug to me.
    This is with version 1.4
    the created file can be opened in Lightroom 4, so the only problem seems to be that dng_validate does not think its valid.
    Message was edited by: torger76, removed clipping issue, that was a fault in my code.

    Hello Charles,
    I would be concerned too if my MacBook Prowas running slowly.  I found a couple of articles I recommend to help isolate and troubleshoot this issue.
    I recommend reviewing this article first for possible causes of the slowness:
    OS X Mavericks: If your Mac runs slowly
    http://support.apple.com/kb/PH13895
    You can further isolate the issue by determining if it is only happening in your user account or if it is happening system-wide:
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to use addAll with a set of integers in array

    Hi does anyone know how to use void addAll (Set other) with a set of integers?...i want to add all of the integers from the other set to this one. For example, if i have this set {4, 9, 2} and I wanted to add to it all of the integers from another set {3, 2, 8, 4}, the set becomes {4, 9, 2, 3, 8}. I'm stumped on how to do this..if anybody could help, thanks!

    Set1 = ...
    Set2 = ...
    Set1.addAll(Set2);
    addAll(Collection<? extends E> c)
    Adds all of the elements in the specified collection to this set if they're not already present (optional operation). If the specified collection is also a set, the addAll operation effectively modifies this set so that its value is the union of the two sets. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress.

  • Problem with integeration builder

    Hi,
    I am trying to access SXMB_IFR to connect to integeration builder on browser, SAP screen shows me Starting Browser and it opens up SAPWORK directory and does nothing.
    I have installed Java web start but still nothing is happening....
    Can anyone help me...
    regards
    Rinku
    Message was edited by:
            Rinku Malik

    Hi Rinku,
    U may try the following,
    1. Check if u r using the java version lower than 1.5
    If it is not PI7.o then try to use only java webstart 1.4.2_13 or 1.4.2_12
    2. Make sure u r using IE and not Mozilla
    3. That could also mean that your Java portion of XI is not workign properly. Can you start visual admin tool and check that all the services are running. You might have to manually start those which have not automatically started.
    [Dont forget to mark helpful answers]
    Regards,
    Prateek

  • OPC and 16 bit integers

    Hi everybody,
    I have a very time consuming problem with opc programming in labview: I need
    to write 16 bit integers with the labview opc client to the server - and I
    don't know how to do this because of the limitation of the labview Vi's to
    32 bit integers.
    Any suggestion is very welcome.
    Bernd Szyszka

    What is the limitation? LabVIEW has 8,16, and 32 bit integers - both signed
    and unsigned.
    "Dr. Bernd Szyszka" wrote:
    >Hi everybody,>>I have a very time consuming problem with opc programming
    in labview: I need>to write 16 bit integers with the labview opc client to
    the server - and I>don't know how to do this because of the limitation of
    the labview Vi's to>32 bit integers.>>Any suggestion is very welcome.>>Bernd
    Szyszka>>

Maybe you are looking for

  • Apps turning back on cell data when restrictions are turned on

    I am having a very frustrating issue that I can't seem to solve. I recently allowed my son to get a cell phone (an iPhone 4S). We have Sprint and have a 1GB data cap on each phone. I knew he would want to play games and such using a lot of data. So I

  • Low Network Utilization in Remote Disk Backup via SAP FTP

    Hi gurus, I'm running whole online backup + redo log to backup my SAP server to backup server via SAPFTP (remote disk backup). I'm using 100Mbps network connection between the two servers, with SAP server configured to 'maximize data throughput for n

  • How to skip validation using serverListener

    Hi, I am using Jdev 11.1.2.3.0 My requirement was to called some action using the keyboard key. I tried with Access key first but its behaving differently in different browser. Crome: allowing action on access key press. IE : setting the focus on com

  • How can I format the double value?

    Hi, I am trying to format the double variable as like, double var = 1234.56789 but i want that variable as like var = 1234.56 How can i do that in java? Please help me. From Parshuram Walunjkar

  • Will Time Capsule back itself up?

    Just curious if anyone knows if Time Capsule will back up its own contents. For example, if I want to house my iTunes music library on the Time Capsule hard drive, will it get backed up by Time Capsule itself?