Errors in the output/result..

I tried to compile the program that should display the following side by side_:
Miles           Kilometers          Kilometers           Miles
1               1.609               201                  124.922
2               3.218               202                  125.544
3               4.827               203                  126.165
4               6.436               204                  126.787
5               8.045               205                  127.408However, the wrong output is shown as below:
Miles           Kilometers          Kilometers           Miles
1               1.609               201                  124.922
1               1.609               202                  125.544
1               1.609               203                  126.165
1               1.609               204                  126.787
1               1.609               205                  127.408
2               3.218               201                  124.922
2               3.218               202                  125.544
2               3.218               203                  126.165
2               3.218               204                  126.787
2               3.218               205                  127.408
3               4.827               201                  124.922
3               4.827               202                  125.544
3               4.827               203                  126.165
3               4.827               204                  126.787
3               8.045               205                  127.408
4               6.436               201                  124.922
4               6.436               202                  125.544
4               6.436               203                  126.165
4               6.436               204                  126.787
4               6.436               205                  127.408
5               8.045               201                  124.922
5               8.045               202                  125.544
5               8.045               203                  126.165
5               8.045               204                  126.787
5               8.045               205                  127.408I need your help to check and correct the mistakes. Thanks a lot.
What I compiled the program is shown as below:
import java.util.Scanner;
public class TwinConvTable
   public static void main(String[] args)
      //display the names
      System.out.println("Miles\tKilometers\t\tKilometers\tMiles");
      for (int m=1; m<=5; m++)
      for (int km=201; km<=205; km++)
         //display the output
         System.out.println(m + "\t\t" + (m*1.609) + "\t\t\t" + km + "\t\t" + (km/1.609));
   }//end of main
}//end of Twin1 classNote:
km = (m*1.609)
m = (km/1.609)
Edited by: soulhealer88 on May 25, 2008 12:01 PM
Edited by: soulhealer88 on May 25, 2008 12:09 PM

Sorry for replying late.
I realised that I forgot to use the brackets { } to close the loop body.
Thanks a lot for helping and correcting.
**Readers, I wonder whether you want to use the program compilation. Here is below:
public class TwinConvTable
     public static void main(String[] args)
          //display the names
          System.out.println("Miles\tKilometers\t\tKilometers\tMiles");
          int miles=0;
          for (int kilometers=201; kilometers<=205; kilometers++)
          //loop body
               miles++;
               //display the output
               System.out.printf(miles + "\t\t" + (miles*1.609) + "\t\t\t" + kilometers + "\t\t" + "%.3f\n",(kilometers/1.609));
          }//end of for loop
     }//end of main
}//end of TwinConvTable classEdited by: soulhealer88 on May 25, 2008 11:08 PM

Similar Messages

  • Error flushing the output stream in Sun One server

    Hi All,
    I was running my servlet code in iPlanet 6.0 version and it was working fine. I upgraded my web server to new Sun One server (Oracle-iPlanet-Web-Server-7.0.9). With the new web server almost 90% of my application works fine, but there is a features in my application to download an Excel sheet by clicking a button. This feature is failing in new Sun One web server.
    Below are my piece of code and the error log I m getting. Can anyone tell me how I can fix this error, I mean is there any web server specific change or configuration parameter need to be set.
    Please ask for any information regarding my server configuration settings if needed for finding a solution for this
    Code:
    byte abyte0[] = new byte[1024];
    BufferedInputStream bufferedinputstream=null;
    BufferedOutputStream bufferedoutputstream=null;
    java.io.InputStream inputstream = httpurlconnection.getInputStream();
    bufferedinputstream = new BufferedInputStream(inputstream);
    bufferedoutputstream = new BufferedOutputStream(httpservletresponse.getOutputStream());
    int j;
    long byteCount=0;
    while((j = bufferedinputstream.read(abyte0, 0, 1024)) != -1)
    byteCount=byteCount+j;
    if(logger != null && logger.traceOn())
    logger.log("total"+byteCount);
    logger.log("Read bytes:"+j);
    bufferedoutputstream.write(abyte0, 0, j);
    if(logger != null && logger.traceOn())
    logger.log("Wrote bytes:"+j);
    bufferedoutputstream.flush(); // <<<<<< ERROR POINT >>>>>>
    Error Log :
    ClientAbortException: java.io.IOException: WEB8004: Error flushing the output stream
    at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:343)
    at org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:313)
    at org.apache.coyote.tomcat5.CoyoteOutputStream.flush(CoyoteOutputStream.java:147)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
    at com.reuters.bdec.as.ASRequestHandler.processResponse(ASRequestHandler.java:285)
    at com.reuters.bdec.as.ASRequestHandler.initiateGetRequest(ASRequestHandler.java:89)
    at com.reuters.bdec.as.ASRequestHandler.proceedToDestination(ASRequestHandler.java:220)
    at com.reuters.bdec.as.ASExtension.authorisationCheck(ASExtension.java:84)
    at com.reuters.bdec.as.ASExtension.doGet(ASExtension.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:794)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:915)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)
    Caused by: java.io.IOException: WEB8004: Error flushing the output stream
    at com.sun.webserver.connector.nsapi.NSAPIProcessor.action(NSAPIProcessor.java:243)
    at org.apache.coyote.Response.action(Response.java:197)
    at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:339)
    ... 20 more

    Don't flush it yourself. The servlet container will automatically flush for you once its send buffer is full. You can change the size of the send buffer though.

  • Error generating the output preview

    Hi friends!
    Could you help me u2013 when I run Output Preview in bit invitation process Iu2019ve got a system error u201CError generating the output previewu201D. 
    What could be a reason?

    Note 1172470 - BBP_BID: Error generating the output preview
    Note Language: English Version: 3 Validity: Valid from 26.05.2008
    Summary
    Symptom
    From transaction "Process bid"(BBP_QUOT) when you click on print preview,
    you get the error "Error generating the output preview". Due to this error
    the preview is not displayed.
    More Terms
    BBP_BID 210, output preview, print preview, preview, bid, quotation, quot,
    BBP_QUOT, BBP_OUTPUT, SAPLBBP_OUTPUT, pdf, BBP_OUTPUT_QUOT_PREVIEW_SMART,
    SYSTEM_INSTALLED_LANGUAGES.
    Cause and Prerequisites
    This is caused by a program error.
    Solution
    Implement the attached corrections or import the corresponding support
    package
    Header Data
    Release Status: Released for Customer
    Released on: 26.05.2008 11:14:52
    Priority: Correction with medium priority
    Category: Program error
    Main Component SRM-EBP-CA-PRT Document Output / Forms
    Additional Components:
    SRM-EBP-QUO Quotation, Bid
    Valid Releases
    Software Component Release From
    Release
    To Release and Following
    SRM_SERVER 550 550 550
    Support Packages
    Support Packages Release Package Name
    SRM_SERVER 550 SAPKIBKT13
    SRM_SERVER 600 SAPKIBKU05
    Please raise customer message

  • How to receive the error in the output panel in a textfield

    Hello, if you test your movie and when an error occurs the
    error is going to the output panel.
    Is it possible to catch these errors en put them in an
    textfield?
    My error example in my output is :
    Error opening URL
    "file:///C|/DOCUME%7E1/CSM%7E1/LOCALS%7E1/Temp/doesnotexist.jpg"
    The code i tried is:
    function loadSomething() {
    loadMovie("doesnotexist.jpg", doel);
    try {
    loadSomething();
    } catch (e_err:Error) {
    trace("Error!! "+e_err.message);;
    trace("\t"+e_err.name);
    I noticed with try catch finaly you can create your own error
    name, but i don't want this.
    I would like the error report that flash generate in an
    textfield.. I search a lot in the help file in the error
    constructor
    but could not find an solution.
    Does anyone have an solution for this?
    Regards,
    Micheal.

    does no one has experience with this?

  • How to use the output result after executing SUBMIT

    Hi,
    We want to use a field value which should come from the result of running a standard Report in our own customer program.
    And if using SUBMIT command to run that report and then using 'LIST_FROM_MEMORY' to call the result, but it seems the result is in Unicode mode, we can't directly use that result in the called program.  What do we need to do? Is there other FM to convert the result?  Thanks in advance for your valuable input.
    Regards

    use of LIST_TO_ASCI?

  • WEB8004: Error flushing the output stream

    This error has been posted many time in this forum but so far no positive reply.
    My application uses Java 1.5 and iPlanet SUN Web Server 6.1
    When user make multiple click on any request page this error occurs. Based on my investigation I got this exception occured when server response does not able to find its request page.
    Could any one have some idea how to supress this error? Or is it bug in iPlanet 6.1?
    Any help is appreciated.
    Thanks,
    Jude

    The problem has been resolved by removing flush=true from all the JSP pages

  • Error in the output file

    Hi,
    I am pasting the code below. The main objective of this file is to accept three command line arguments 1st argument is data to be inserted into the file, 2nd argument is the position where the data has to be inserted and finally the file name to which the data has to be writen using RandomAccessFiles in Java.
    When i try to write some data the data being written is in Hexadecimal. Kindly help me with respect to this.
    Code goes as follows:
    import java.io.*;
    public class RandomFileTest
    public static void main (String [ ] args)
    String value = null;
    long position = 0;
    if (args.length < 3)
    System.out.println ("Usage: java RandomFileTest value position
    filename");
    System.exit(0);
    value = args[0];
    position = Long.parseLong (args[1]);
    RandomAccessFile file = null;
    try {
    file = new RandomAccessFile (args[2], "rw");
    catch (FileNotFoundException ffe)
    System.out.println("File not found. Will create it.");
    if (position > 0 && position <= file.length ())
    file.seek (position);
    file.writeChars (value);
    }

        try {
          file = new RandomAccessFile (args[2], "rw");
          if (position >= 0 && position <= file.length ()) {
            file.seek (position);
            file.writeChars (value);
        catch(IOException ioe) {
           System.out.println(ioe);
        }

  • Create Accounting when completed in warning the output is coming in XML

    Hello to all,
    I am having APPS version 12.1.3 OS version OEL 5.5
    my problem is that when i am running Create Accounting concurrent request if it completes in warning the output (view output) is coming in XML in browser where as if its completing normal then the output appears correctly as expected, the output type for create accounting concurrent program is XML.
    Please advise / guide me
    thanks

    Please find below log file details
    ==============================================================================================
    Start of log messages from FND_FILE
    06-OCT-2011 10:36:08 - Beginning of the Report
    06-OCT-2011 10:36:08 - Starting of the Parent Thread
    Starting main program for the source application = 200
    06-OCT-2011 10:36:08 - Dynamic conditions built
    06-OCT-2011 10:36:08 - Event Applications Determined
    06-OCT-2011 10:36:08 - Security Context Set
    06-OCT-2011 10:36:08 - Session Identifier Set
    06-OCT-2011 10:36:08 - Setup for the ledger and Event applications Read
    06-OCT-2011 10:36:08 - executing preaccounting hook
    event key = 10-426334
    06-OCT-2011 10:36:08 - preaccounting hook executed successfully
    06-OCT-2011 10:36:08 - Pre-Accounting steps performed
    06-OCT-2011 10:36:08 - Queue Created = XLA.XLA_426334_DOC_Q
    06-OCT-2011 10:36:08 - Queue Created = XLA.XLA_426334_COMP_Q
    06-OCT-2011 10:36:08 - Queue Started = XLA.XLA_426334_DOC_Q
    06-OCT-2011 10:36:08 - Queue Started = XLA.XLA_426334_COMP_Q
    06-OCT-2011 10:36:08 - Global Context Initialized
    06-OCT-2011 10:36:08 - Calling sequencing batch_init
    06-OCT-2011 10:36:08 - Returned from sequencing batch_init
    06-OCT-2011 10:36:08 - Begin enqueue
    06-OCT-2011 10:36:08 - Ready to Enqueue documents in the queue
    06-OCT-2011 10:36:08 - Spawning unit processors
    06-OCT-2011 10:36:08 - Unit processors spawned
    06-OCT-2011 10:36:36 - Ready to Enqueue documents in the queue
    06-OCT-2011 10:36:36 - Ready to Enqueue documents in the queue
    06-OCT-2011 10:36:36 - Ready to Enqueue documents in the queue
    06-OCT-2011 10:36:36 - Ready to Enqueue documents in the queue
    06-OCT-2011 10:36:36 - Enqueueing completed
    06-OCT-2011 10:36:36 - Waiting for Unit Processor requests to complete
    06-OCT-2011 10:37:06 - Child Threads completed
    06-OCT-2011 10:37:06 - Global Context cleared
    06-OCT-2011 10:37:06 - Queue stopped = XLA.XLA_426334_DOC_Q
    06-OCT-2011 10:37:06 - Queue stopped = XLA.XLA_426334_COMP_Q
    06-OCT-2011 10:37:06 - Queue dropped = XLA.XLA_426334_DOC_Q
    06-OCT-2011 10:37:06 - Queue dropped = XLA.XLA_426334_COMP_Q
    06-OCT-2011 10:37:06 - Calling sequencing batch_exit
    06-OCT-2011 10:37:06 - Returned from sequencing batch_exit
    06-OCT-2011 10:37:06 - Executed post-accounting routine
    06-OCT-2011 10:37:06 - Accounting Program completed successfully
    06-OCT-2011 10:37:06 - executing postaccounting hook
    event key = 10-426334
    06-OCT-2011 10:37:06 - postaccounting hook executed successfully
    - Accounting Time = 58.73 secs
    - Transfer Time = 0 secs
    06-OCT-2011 10:37:06 - End of the Report
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    1920
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 426334 on node M at 06-OCT-2011 10:37:06.
    Post-processing of request 426334 failed at 06-OCT-2011 10:39:06 with the error message:
    The Output Post-processor is running but has not picked up this request.
    No further attempts will be made to post-process this request, and the request will be marked
    with Warning status.
    Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 06-OCT-2011 10:39:06
    Edited by: hassanksa on Oct 8, 2011 8:15 AM
    Edited by: hassanksa on Oct 8, 2011 8:16 AM

  • WMI - Output result

    Hi 
    Am trying to fetch information from my client computers, that they have installed Skye or not  on there computers.
    I was able to write a WMI script,  works well, but the output result is written on cmd.
    How can i get the output result to excel or notepad..
    Please help me with the output script code.
    Here is my code 
    strComputer = "." 
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
    Set colItems = objWMIService.ExecQuery( _
       "SELECT * FROM Win32_Service where displayname like 'Skype%' ",,48) 
    For Each objItem in colItems 
       Wscript.Echo "Name: " & objItem.displayName
    Next
    Thanks
    Venky

    Hi 
    Iam trying to fetch information from my client computers, that they have installed Skye on there computers.
    I was able to write a WMI script,  works well, but the output result is written on cmd.
    How can i get the output result to excel or notepad..
    Please help me with the output script code.
    Here is my code 
    strComputer = "." 
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
    Set colItems = objWMIService.ExecQuery( _
       "SELECT * FROM Win32_Service where displayname like 'Skype%' ",,48) 
    For Each objItem in colItems 
       Wscript.Echo "Name: " & objItem.displayName
    Next
    Thanks
    Venky

  • Finidng the missing segments and return to the output

    Hello All,
    I am working on finding the missing segments which doesn't have a code value. I have 2 tables, Line and Code.
    In the line table I have below columns
    Line_ID                  BeginMeasure                   EndMeasure
    1                                0                                     
    100
    2                                0                                     
    200
    3                                0                                      300
    In the code table I may have multiple records for each line
    Line_ID                       BeginMeasure                 
    EndMeasure                   code
    1                                  12                                   
    30                                    3
    1                                   40                                  
    50                                    4
    2                                  0                                     
    150                                  6
    3                                  30                                   
    300                                  8
    Here I need to find out the segments which doesn't have a code value. For example, for Line_ID 1 in the code table we dont have a value for the code for 0 -12, 30 - 40 and 50 - 100 segments and for Line_ID 2, we dont have code for 150 - 200 segment.
    I want the  records which doesn't have code value defined in the output result set and the expected result set should be like below
    Line_ID                           BeginMeasure                    
    EndMeasure
    1                                        0                                           
    12
    1                                        30                                         
    40
    1                                        50                                          
    100
    2                                       150                                         
    200
    3                                         0                                            
    30
    Any code suggestions/help is greatly appreciated.
    Thanks so much

    Declare @vLine Table (id int, BM int, EM int)
    Declare @vCode Table (id int, LineID int, BM int, EM int, code int)
    Insert into @vLine
    Select 1,0,100 Union All
    Select 2,0,200 Union All
    Select 3,0,300
    Insert into @vCode
    Select 1,1,12,30,3 Union All
    Select 2,1,40,50,4 Union All
    Select 3,2,0,150,4 Union All
    Select 4,3,30,300,4
    --;with wcte as
    -- Select *
    -- from @vLine a
    -- Inner Join @vCode b on b.id = a.id
    Select a.ID, a.BM, a.EM,b.BM,b.EM,b.code
    from @vLine a
    Inner Join @vCode b on b.LineID = a.id -- 1
    Declare @vLineID int
    Declare @vCodeID int
    Declare @vInsertedID int
    Declare @vLineMaxVal int, @vLineMinVal int, @vCodeMaxval int, @vCodeMinVal int, @vCodeInt int
    Declare C1 Cursor for
    Select a.ID, a.BM, a.EM,b.BM,b.EM,b.code
    from @vLine a
    Inner Join @vCode b on b.LineID = a.id -- 1
    --Where a.ID = 2
    open C1
    Fetch Next from C1 into @vLineID, @vLineMinVal , @vLineMaxVal , @vCodeMinval , @vCodeMaxVal , @vCodeInt
    Declare @vResult Table (ID int IDENTITY(1,1), LineID int, MissVal1 int, MissVal2 int)
    Set @vCodeID = @vLineID
    While @@Fetch_Status = 0
    begin
    print @vCodeID
    print @vLineID
    While @vCodeID = @vLineID and @@FETCH_STATUS = 0
    begin
    --Select @vCodeMinVal , @vLineMinVal
    if @vCodeMinVal > @vLineMinVal
    begin
    if Exists (Select 1 from @vResult where LineID = @vLineID and MissVal2 = @vLineMaxVal)
    begin
    Update @vResult
    Set MissVal2 = @vCodeMinVal
    where LineID = @vLineID and MissVal2 = @vLineMaxVal
    end
    else
    begin
    Insert into @vResult
    Select @vLineID, @vLineMinVal, @vCodeMinVal
    Select @vInsertedID = SCOPE_IDENTITY()
    end
    end
    if @vLineMaxVal > @vCodeMaxval
    begin
    Insert into @vResult
    Select @vLineID, @vCodeMaxVal, @vLineMaxVal
    Select @vInsertedID = SCOPE_IDENTITY()
    end
    Fetch Next from C1 into @vLineID, @vLineMinVal , @vLineMaxVal , @vCodeMinval , @vCodeMaxVal , @vCodeInt
    print @vCodeID
    print @vLineID
    if @vCodeID <> @vLineID
    BREAK
    end
    Set @vCodeID = @vLineID
    --Fetch Next from C1 into @vLineID, @vLineMaxVal , @vLineMinVal , @vCodeMaxval , @vCodeMinVal , @vCodeInt
    end
    Deallocate C1
    Select * from @vResult
    Please visit my Blog for some easy and often used t-sql scripts
    My BizCard

  • DIO Pass or Fail Tests: LabVIEW would have to determine the expected result or results (1 or 2 of a possible 25) based on the output pattern send out (1 of 65K).

    I am trying to come up with a plan to write a LabVIEW VI to do the following test. Can you give me a few ideas how to do this in LabVIEW. I am a new to LabView. I think I how to read and write I/O ports and do comparisons. I need a little guidance on the error checking. In simple terms the test will go like this:
    I have 16 digital inputs and 16 outputs.
    The 16 outputs are turned on in a specific pattern (i.e. 1001000101011101) and then the 16 inputs (i.e. 1000101111111111) are read in after a time delay. The inputs are checked to see if they match the expected results. If they do it's a pass if not it's a f
    ailure. This seems pretty straightforward. And I think I have an idea how to do it. Here's the problem. The inputs are changed sequentially so that all possible combinations are tried. The test needs to determine if the resulting input pattern is correct based on the outputs that were sent out. 16 outputs give 65K possible tests. For each tests there would be 1 or 2 possible results with a total of 25 results for the entire 65K possible tests. LabVIEW would have to determine the expected result or results (1 or 2 of the 25) based on the output pattern send out (1 of 65K). Then it would have to compare the actual input pattern received to see if it's a pass or fail?
    Any ideas how I can approach this?

    The 16 outputs are simulating inputs to the device under test, (simulating remote switches and contacts). The object of the test is to test every possible combination to ensure that nothing unexpected happens at the output. The device under test is a logic motor control system and we want to make sure (among other things) that we don’t start or stop the motor when its not suppose to. How can only two tests do that?
    I think you are describing how to create an array with the results. But I still don’t know how to determine what the result should be and if it is correct.
    I’ve identified 25 possible valid states the motor controller can be in.
    I’ve also identified the correct outputs that determine each of the 25 states.
    I’ve also
    identified the possible valid states you can go to from each (previous) state, You can only get to a valid new state from a previous state if the right combination of inputs is applied (we hope).
    If you know what state you are in when start and you know the valid states you can go to and the inputs required to get there, you should be able test the system against that. You verify this by checking the outputs against what they should be. With 65K possible inputs combination, checking them all manually would be quite is a task. Putting this into LabView is my task.

  • Why it gives an error , although the result is correct

    Hello everybody,
    here is my code, which i wrote in another way,
    After th sucessful compiling it gives an error, but the results of execution is ok.
    What is wrong?
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    public class ReadFkOut {
         private static double[] ar;
         private static double[] ar1;
         ReadFkOut() {
    ar=new double [6];
    ar1=new double[6];
              try {
                   FileReader file = new FileReader("bambam1.dat");
                   BufferedReader buff = new BufferedReader(file);
    StreamTokenizer stk=new StreamTokenizer(buff);
    stk.eolIsSignificant(false);
    stk.parseNumbers();
    int lineNumber=0;
    stk.nextToken();
    while(stk.ttype==stk.TT_NUMBER) {
    ar[lineNumber]=(double)stk.nval;
    stk.nextToken();
    ar1[lineNumber]=(double)stk.nval;
    lineNumber++;
                   buff.close();
              catch (Exception e) {
                   System.out.println("Error - - " );
         public double[] getValues() {
              return ar;
         public double[] getValues1() {
              return ar1;
    0.00000000 39.409
    5.00000000 39.409
    10.0000000 39.409 file bambam1.dat
    15.00000000 39.409
    20.00000000 39.409
    25.0000000 39.409
    main coimport java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    public class Galka {
    ReadFkOut rf;
    static double [] gallochka;
    static double [] gallochka1;
    public static void main(String[] args) {
              ReadFkOut rf=new ReadFkOut();
              gallochka=rf.getValues1();
    gallochka1=rf.getValues();
    System.out.println(gallochka[1]);
    System.out.println(gallochka1[1]);

    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    public class ReadFkOut {
    private static double[] ar;
    private static double[] ar1;
    ReadFkOut() {
    ar=new double [6];
    ar1=new double[6];
    try {
    FileReader file = new FileReader("bambam1.dat");
    BufferedReader buff = new BufferedReader(file);
    StreamTokenizer stk=new StreamTokenizer(buff);
    stk.eolIsSignificant(false);
    stk.parseNumbers();
    int lineNumber=0;
    stk.nextToken();
    while(stk.ttype==stk.TT_NUMBER) {
    ar[lineNumber]=(double)stk.nval;
    stk.nextToken();
    ar1[lineNumber]=(double)stk.nval;
    lineNumber++;
    buff.close();
    catch (Exception e) {
    System.out.println("Error - - " );
    public double[] getValues() {
    return ar;
    public double[] getValues1() {
    return ar1;
    0.00000000 39.409
    5.00000000 39.409
    10.0000000 39.409 file bambam1.dat
    15.00000000 39.409
    20.00000000 39.409
    25.0000000 39.409
    main coimport java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    public class Galka {
    ReadFkOut rf;
    static double [] gallochka;
    static double [] gallochka1;
    public static void main(String[] args) {
    ReadFkOut rf=new ReadFkOut();
    gallochka=rf.getValues1();
    gallochka1=rf.getValues();
    System.out.println(gallochka[1]);
    System.out.println(gallochka1[1]);
    }The output is
    Error --
    5.0
    39.409

  • TS2518 Help, I had aperture open and working on a image and did not have a battery in and bumped the power off. As a result it will not open my master, it is locked. when I try to open that Library  it says There was an error opening the database for the

    Help, I had aperture open and working on a image and did not have a battery in and bumped the power off. As a result it will not open my master, it is locked. when I try to open that Library  it says There was an error opening the database for the library. I have tried every thing. I updated the other libr but now it will not open the main to update. What do I do?

    Try starting Aperture with the command and option keys held down.  You'll get 3 options.
    Try each, starting at the top, in order, checking after each to see if it fixes the issue.

  • Bursting Control file, Error!! Could not deliver the output for Delivery

    Hi,
    I am using bursting control file to send report output to email in R12.1.3.
    If the report output is having data, it is working fine. if there is no data it is getting errored out with the below message.
    "Error!! Could not deliver the output for Delivery channel:null "
    In the report output i put "No data found", when i click on view output the output in application is showing as "NO DATA FOUND" in PDF .
    "Bursting VMC Approved Purchase Orders for a period (XML Publisher Report Bursting Program)" got above error.
    my requirement is if there is no data, still i require the output to email.
    Thanks in Advance
    Adina.

    Hi,
    I am facing the same situation and want the bursting program to finish in normal even when there is no data.
    Can you please let me know how you resolved this?
    Thanks
    RG

  • Error While saving the tabulator results recording(QE71)

    Hi Experts ,
    through the Tcode QE71 i'm recording the inspection points and the inspection results but while Saving the recorded results , the system is giving error as " No Orignal values " and also as "inspection Pt 99999 of the Characteristics .....is not avaialable".
    What might be the possible reason for the same. But when i'm entering the results through the Tcode QE01 all the results are saved and closed.
    Can anybody help me out of this.
    B'regards
    Krishna

    Hi,
    Can you call your web service using jQuery not in an app successfully?
    As the error message suggests, it might be an error on the server side.
    I suggest you do a simple test to check whether you can call the web service using jQuery.
    Here are two links would provide more information about troubleshooting this error for your reference:
    http://sadomovalex.blogspot.com/2013/08/return-json-from-asmx-when-call-it.html
    http://www.codeproject.com/Tips/761116/Troubleshooting-an-Issue-With-Calling-an-asmx-Web
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for