Which is the right code?

i need a code that can read integers from a .txt file.
eg. of .txt file content:-
"12 34 56"
which command should i use?
there are so many commands that look the same to me.
eg. FIlereader, Stringreader, and many more.
i am not sure which one i should use.
tq
Edited by: fmpfmpf on Jun 19, 2008 3:51 AM

package AAA;
import java.io.*;
public class tests
     public static void main(String[] args) throws IOException
          String path = "abs/111/ddd";
String[] pathSegs = path.split("/");
System.out.println(Arrays.toString(pathSegs));
There is an error at:-
System.out.println(Arrays.toString(pathSegs));
The error is:-
Arrays cannot be resolved
How do i solve this?
TQ

Similar Messages

  • Which is the right way?/place to post the suggestion to SAP

    Hi Freinds,
    if someone have to make a suggestion to SAP, for its product extension..or maybe a new feature to add to its existing product offering...which is the right place...shld it be in the form of a blog or a post in a forum...
    and if indeed turns out to be a unique feasible feature and gets lots of positive response...why kind of recognition will it get....

    lol. there's a world outside the US for those who don't know.
    therefore ASUG might not be the right address for someone living elswhere. there are some SAP user groups in other areas of this world, eg in germany it's DSAG; unfortunately you have to be a member of those 'societies' (membership fee) and it's not easy to make yourself heard in the beginning.
    SAP could provide better channels for that, e.g. special SDN areas for that purpose.
    rgds,
    anton

  • Which is the right hardware address?

    If I look at Prefs->Built-in Ethernet -> Ethernet, the panel quotes an 'ethernet ID'. System Profiler -> Network gives a MAC address. Both of these look like plausible hardware addresses(6 pairs of letters and digits with colons between), but they're different. Does anyone know which is the right one to quote to register on a (BootP) network? And, just out of interest (unless there's something weird about my Macbook) what the other one refers to?
    I need to get this registered to our university network but (surprise surprise) the IT people don't support Apples so they're no use.....
    Thanks

    Ethernet is the category name for both the Airport and "Built-in Ethernet" devices under which the MAC addresses are listed. If you click on Network in the System Profiler left-hand panel, you should see a list of active services. This is a list of all possible network connections. One of these should be "Built-in Ethernet", and is also referred to as "en0" (Airport is "en1"). When you select "Built-in ethernet", its properties and settings appear in the pane below. This MAC address should, of course, be the same as the one in the Network preference pane.
    bd

  • Which is the right badi on save for cv01n

    Can someone tell me which is the right badi on save?
    I have a requirement of inserting 2 input fields pernr(personal number) and ename(employee name)  for a particular document type in cv01n... if i save a document all  the values are saving except pernr and ename... so which is the right badi where i can put the logic to pass the values.. I appended DRAW table with the above 2 input fields.. i am not sure about the table where the document details are saving upon SAVE  is triggered.
    In DRAW table document number getting generated is saved with all the other values except PERNR AND ENAME.

    Hi,
    Please download "ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio". When you install it, it will create an 11g Oracle home. Let it do that (don't try to install it into the Oracle XE home).
    You will need to set up a connect alias to connect to the XE database (as if it were on another machine).
    Thanks,
    Christian

  • Jdeveloper JSP-Struts (which is the right way to decalre a DataSource)

    Hello to all..
    I'am developing web application for a car assicuration.
    I would like to know which is the right "connection" (jndi name) to use in my application..
    I have made a JDBC connection to my production databse...
    Then I have made a Data Source from menu (Jdeveloper -> Tools -> Embeded Oc4J -> Current workspace -> Datasources...
    Here I have created a new DataSource from "Autocreate from IDE..."...
    My Question is.. which Class name I must use?
    Default class is: com.evermind.sql.DriverManagerDataSource
    I see that there is also a: oracle.jdbc.pool.OracleConnectionPoolDataSource..
    Which Class I must select? My application is used by many users online..
    Is there any axample on oracle to see how to use JNDI connections (connection pool)..
    I'am using Jdeveloper version: 10.1.2.1.0
    best regards
    Peter

    AFAIK all connections, DataSource ones included are created by calling the DriverManager. A DataSource is a factory for Connection objects (from JavaDocs)
    If you're talking about managing connections then it depends on the application. A DataSource is great for apps that can support many clients or are multi-threaded, but may require a JNDI implementation to get to it.
    If however you have an single threaded app that hits the database in a serial fashion, then DataSource is probably an overkill.
    Dave

  • In E-Business Tax - In which table the tax codes are stored?

    Hi All,
    I am new to Financials. I have a requirement in which I need to list all the TAX CODES pertaining to AP and AR. Kindly let me know in which table the tax codes are stored in E-Business Tax module. Also let me know how the tax is associated with the AP and AR modules. Is there any column in the table to identify whether the tax is for AP or AR?
    Regards,
    Ahmed.

    Hello Ahmed.
    I was not aware that you were talking about R12. The information i gave you concerns 11.5.10.2. Anyway, i checked the ETRM's for R12 and checked that the tables also exist in rel 12. This is an excerpt from R12 ETRM:
    TABLE: AP.AP_TAX_CODES_ALL
    Object Details
    Object Name: AP_TAX_CODES_ALL
    Object Type: TABLE
    Owner: AP
    FND Design Data: SQLAP.AP_TAX_CODES_ALL
    Subobject Name:
    Status: VALID
    AP_TAX_CODES_ALL contains information about the tax codes
    you define. You need one row for each tax code you
    want to use when entering invoices. When you enter
    invoices, you can use a list of values to select a tax code
    defined in this table. Your Oracle Payables
    application also uses TAX_RATE to calculate use tax
    when you enter a taxable amount for an invoice.
    This table corresponds to the Tax Codes window.
    Now you say that you cannot find the information into the tables. Are you working on a production instance. Are you sure that the taxes have already been defined?
    Octavio

  • Table which stores the return codes

    Hi All
    I would like to know in which table the return codes for a BAPI get stored for the structure BAPIRET2.
    Thanks in advance
    Sree Ramya

    Hi sree,
    1. the return codes are nothing
       but standard messages of the transaction.
    2. such messages and their codes are stored in table T100.
    regards,
    amit m.

  • I had an old iPod classic 40 gb, now it doesn't work anymore; I have to add a new one (iPod classic 60 gb) to my iTunes: could you tell me which is the right procedure?

    I had an old iPod classic 40 gb, now it doesn't work anymore; have to add another one (iPod classic 60 gb) to my iTunes (windows XP), which is the right procedure?

    Plug it in and follow the onscreen directions. That you previously had an iPod doesn't matter.
    (58889)

  • When importing a spreadsheet with redeem codes into apple configurator, it says it's not the right codes for the app.  But it is the right codes. I used one of the codes to purchase the app in itunes.

    I have a cart of 25 ipads with a macbook air.  I have logged into my VPP account and purchased the needed number of copies.  I downloaded the spreadsheet.  I took the first code from the spreadsheet, and logged into itunes using a regular account (not my VPP account), and used the code to download the app.  I put the app into configurator and then tried to add the spreadsheet with the codes in it.  It comes up and tells me that it is not the correct spreadsheet for that app. But it is the correct spreadsheet!!  I tried re-downloading the spreadsheet again and even tried re-downloading the app.  So I've now used two of my redeem codes and still can't get it to accept it into apple configurator.  I removed the app from apple configurator and re-added it.  The error message says it's not the right codes for the app "Grammar Games by Tap To Learn" and to please get the codes for "Grammar Games by Tap To Learn."  It's the same one!

    It won't let me edit my post, so I'm typing this reply to add...
    I tried taking the version number out of the title. It looked like there were two spaces in the title "Grammar Games  by Tap to Learn". So I even made sure that matched. I still can't import my codes. Any other things to try would be really appreciated.

  • Im trying to redeem my prepaid illustrator card and it keeps coming up with an 'invalid code" I've check the code but I've typed the right code in. Help?

    Im trying to redeem my prepaid illustrator card and it keeps coming up with an 'invalid code" I've check the code but I've typed the right code in. Help?

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • I know this can't be the right code to play on mp3 in flash movie

    I just feel that this is not the right code to playing sound if actionscript 3. I'm trying to play a mp3 sound only in flash can someone tell what is the right script to use. This is what I' m using.
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    goback_btn.addEventListener(MouseEvent.onRelease, goSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(e:MouseEvent):void {
        this.play();
    function goSound(e:MouseEvent):void {
        this.gotoAndPlay("1");
    function stopSound(e:MouseEvent):void {
        this.stop();
    thanks

    it's in my library
    I figured out how to write code for mp3 to play
    Now I can't write one to make it stop or gotoAndPlay.
    This is my code to play
    play_btn.addEventListener(MouseEvent.CLICK, playMusic);
    function playMusic(e:MouseEvent):void {
        var myMusic:Sound = new Sound();
        var soundFile:URLRequest = new URLRequest("custodiansofkingdom.mp3");
        myMusic.load(soundFile);
        myMusic.play();
    Can someone tell me how to write code to make it stop and gotoAndPlay
    Thanks

  • Which is the right IDE to develop policy Agents in Identity Server

    Hi,
    Can any one tell me which is the right IDE to develop agents in Identity Server.Am thinking of using Sun One Studio??Any better IDEs??
    Thanks,
    Ramnath

    Your favorite text editor and a comman-line javac. What do you expect from an IDE?!

  • Which  is the right enhancement to trigger a mail automatically in pa40

    hi...
    i am working with pa40 (personal actions)..
    so here in 2000 screen ...
    if i click on save button, one mail should be triggered and sent it  to that corresponding  pernr mail id while i was updating
    the start date of pernr ..
    so can any body help me..
    to achieve this requirement ..
    i want to know that which enhancement is suitable...
    for that one...
    thank you for reading this ...
    Moderator Message: Why dont you put some effort from your end in finding out the right EXIT/BADI. SAP has some standard procedures for these enhancements. Employ them and help yourself.
    Edited by: kishan P on Nov 16, 2010 9:15 AM

    Hi Eros,
    Just a confirmation, did you encounter any issue (get error message) when create the new form and save it?
    à
    But this new form isn't distributed automatically to all the printers.
    Did you mean that click
    Devices and Printers in Control Panel, click a printer and select “Print server properties” option, and then didn’t find the new created form in Forms tab in Print server properties panel?
    Please open Print Management, navigate to the Print Server and click Forms tab. In the right panel, did you
    find the new form which you created?
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Which is the right compressor?

    I've been producing television for quite some time -- one of the problems I run into on a fairly regular basis is which setting to use when I'm ready to deliver. Since tape seems to have gone away, most of my clients request delivery on a DVD. I'm looking for the definitive answer to which setting is the right one? My products air on local stations via our cable provider. I've used a number of different settings -- sometimes I hear nothing (indicating satisfaction), others end up telling me that they can't open the files or run the DVD (everything seems to work fine for me).
    Today I got a call from a client that said the files I gave them were "too small" to run on TV. I don't know what that means and don't really care -- I just want them to be satisfied. The settings (which are a major mystery to me) that I have used recently and have worked are:
    MPEG-2 6.2Mbps 1-pass.m2v -- now this is apparently too small
    I've tried a number of different settings and always get different results. They have asked for .mov files -- I've tried that, but DVD Studio says that is an incompatible format. If I just drag the files to a blank DVD, they say they can't open the files. I'm confused and looking for a standard I can go to every time. Please help?

    If the client wants a copy, give it to them on a tape. For one, tape is certainly not dead. DV tape is going the way of the dodo, but other tape formats will be around as long as people still need tape for delivery.
    If crazy Mike wants a DVD he can watch, get a cheap DVD recorder and go from a deck, or the timeline, directly to a DVD-R. Don't use DVD+R. For the broadcast station, ask them for a spec sheet. Every station has one, and they aren't all the same. It depends on how they deliver the content to the channel. Some need an mpeg2 program stream, some need a transport stream, a few might need uncompressed, most can work with a DVD, but you have to author it correctly.
    If you don't know how to author a DVD, then you probably shouldn't deliver that way. You'll only spend more of your time learning how to do it. Unless you can bill them for learning, which, in my opinion, isn't ethical.
    Most likely, you could deliver an mpeg2 program stream with mpeg 1 layer 2 audio. Depending on their sever, they can probably work with a file anywhere from 6 to 15 mb/s. Make sure you give them a full size file, meaning if it's 720x480, don't give them 320x240. You have to check every setting in the compressor preset. But you have to check with the station. They may have an old server, and I know ours won't play a 15mb/s file.

  • List, which contains the tax code of Cash dicount

    hello,
    does anyone know how I can create a list which contains following information.
    specific posting  period 1-5
    tax code 16% or 19% plus their specific cash discount amount.
    e.g.
    period 1   tax code 16%   116€
    period 1   tax code 19%   119€
    I shoudl have this in a sum or for each document.
    thanks a lot
    stefan
    Message was edited by:
            Stefan Grauer

    Hi Eduardo,
    For STO process, there is a procedure very different to customize that our normal sales.
    Please, follow note 199233 which is given a better explanation about this process.
    You should create a sales order type and the IVA code is determined in j1btax (MM) in the same place where the ivaSD is determined when you are handle with normal sales.
    Below follow an example:
    4.70 and up:                                                                               
    o  table J_1BTAXCODEV (via SM30) or                      
         J1BTAX -> Maintain MM Tax Codes                                                                               
    -  Tax Code = Tax code used in MM for GI, e.g. A1     
         -  TC at GR = Tax code used in MM for GR, e.g. I1     
    I hope those information can help you.
    Regards
    Ruy Castro

Maybe you are looking for