Does not print the string value ? what is wrong here

Hi,
I am trying to print the string value that does not have spaces.
when I do that,I dont get what I want i.e 3334445555.
Any help in this regard is appreciated.
Thanks
Chat
import java.util.StringTokenizer;
class TestTokenizer{
public static void main(String args[]){
          StringTokenizer st = new StringTokenizer(" 333 444 5555");
          String tokens[] =new String[3];
          int i=1;
          while (st.hasMoreTokens()) {
               //System.out.println(st.nextToken());
               tokens=st.nextToken();
          System.out.println(tokens.toString());

also, be sure to format your code in your next post...click the code button at the top of the message box you type in, and past your code
*here*[\code]                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Photosmart c6180 does not print the page what i want

    i have photosmart hp c6180 and it is connected to my wireless laptop the problem is when i try to print some it does not print the same page but it prints some weired pages and keep printing but still does not print what i want. please help me on this issue i would really appreciate. thanks

    Have you tried deleting the printer and reinstalling?  At least you are getting the printer to do something.  My print job just gets hung up in queue.

  • Does not print the error message at my behest???

    I have a program which works but I want to give appropriate error handling to the user of application.
    So basically a simple html page asks for servername, username and password and this is passed onto this .jsp page.
    When the correct servername, username and password is entered program is okay but when for example incorrect servername is given it does not print the error message at my behest???????
    Here is a ftp page:
    <!-- processftplogin.jsp -->
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%      try
               String servername = request.getParameter("servername");
               String username   = request.getParameter("username");   
               String password   = request.getParameter("password");
               ftpbean.ftpConnect(servername, username, password);
            catch(Exception e)
               out.println("There has been an error with logging into system");
               out.println("please check Servername");
               out.println("Please check username");
               out.println("Please check password");
    %>
    <h1> You have successfully logged in. </h1>
    </body>
    </html>Why does it print:
    Error: 500
    Location: /myJSPs/jsp/grid-portal-project/processftplogin.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
         at jsp.grid_0002dportal_0002dproject.processftplogin_2._jspService(processftplogin_2.java:120)
    instead of:
    There has been an error with logging into system
    Please check Servername
    Please check username
    Please check password

    man do one thing
    first tell me the book u are using for JSP.
    cos even i would like to purchase.
    u mailed me before
    but this time make a good description
    of your project write it in a file
    then zip it along with your project
    source(if possible)...
    then in that project report
    also give the description of using the JSP tomcat
    and all (cos i dont know for windows...or linux)
    this will be all...

  • Data field FUNCTIONAL_YN does not support the default value (Message 14120)

    L.S.,
    When defining a data type of category NC, I would like to use data fields of type checkbox. At NC logging data entry the checkbox should be "checked" by default.
    When looking for the proper value to indicate that the ccheckbox is selected, I have tried values like: 0, 1, TRUE, FALSE, T, t, X, x ... etc. But always I got the same error message:
           "Data field FUNCTIONAL_YN does not support the default value (Message 14120)"
    What should be the right value?
    Kind regards, Hans

    Hans,
    It looks as if by means of GUI you cannot specify default state of being selected for Checkbox field. The default state is unselected.
    It is easier to invert the statement in the label of the field so that an operator could use unselected state as default.
    Regards,
    Sergiy

  • SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages

    Hi
    I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I  am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
    second page onwards.
    Nikesh Shah
    Nikesh Shah

    Hi Nikesh,
    According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
    color, background images, and expressions. But we couldn’t add tablix in the page header.
    If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
    If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Batch Split in OBD & billed for the entire Quantity .RG1  register does not update the excise values

    Hi All,
    I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
    The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
    As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
    Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
    Sales order (no batch determination)  , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
    Can somebody help me .
    Thank you

    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
    Which field (H & J) they were referring in VBFA ?
    i have checked few other projects in my company and they all seems to be following the program
    How about the other projects' values in VBFA where your techinical team is guessing some issue.  Have you compared this?
    Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
    G. Lakshmipathi

  • I am unable to sync my iPhone4 iCal to my Mac iCal. Snow Leopard does not support the Cloud. What do I do?

    I am unable to sync my iPhone4S iCal to my Mac iCal. Snow Leopard is my OS and it does not support the cloud. What do I do?

    To makeuse of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications).
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • HT3042 when i try to send songs to my ipad it says 'this device does not have the necessary services' what can i do about this?

    when i try to send songs to my ipad it says 'this device does not have the necessary services' what can i do about this?

    call monster, the manfacturer of beats and ask them: http://beatsbydre.com/support/international-support-contact-numbers,default,pg.h tml

  • Firefox does not print the target frame in PeopleSoft Enterprise or Campus Soultions Portals

    When using PeopleSoft Enterprise Portal or Campus Solutions Portal Firefox does not print the target frame. PeopleSoft utilizes iframes and has indicated this is the technology path they will follow. On each page is a header, footer, and left menu. Content is displayed in the target after it is selected from the left menu. This issue prevents users from using the standard print preview or print functionality.

    We need the standard print and print preview functionality that all of our end users are already familiar with to work. We have a large end user group that is frustrated this functionality is available in IE and Chrome, but not Firefox.

  • Lightroom 5 stopped working. Told to remove the program and re-installed. Creative cloud installation does not proceed to 0%. What is wrong? Using a PC.

    Lightroom 5 stopped working. Told to remove the program and re-installed. Creative cloud installation does not proceed to 0%. What is wrong? Using a PC.

    I installed the Creative Cloud again. Now it works.

  • The installed file can not be activated.  Since the system does not perform the registration.  What can I do?

    The installed file can not be activated.
    Since the system does not perform the registration.
    What can I do?

    I have the same issue. When trying to open the acrobat XI Pro for the first time, you are obligated to sign in with your account. But signing in is taking about an hakf hour now, while I have no problems signin in trough adobe.com with the same username and password.

  • HPOfficeje​t Pro 8600 does not print the page as shown in WORD. I am using win 7, 32-bit OS.

    HPOfficejet Pro 8600 does not print the page as shown in WORD. I am using win 7, 32-bit OS. How do I fix this?

    Sounds like the table is to large to fit on a single page. Have you tried using the "Shrink to Page" option in the Print Preview? Depending on your version of Word, my attached picture may not be 100% similar but it should be enough to give you an idea. Here is the option inside the print preview menu:
    Let me know if this resolves your issue
    -SeanS
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Print range does not print the last page in the range.

    Adobe Reader for New IPAD - The print range function does not print the last page in the range. For example, if you enter a print range of 2-18, pages 2-17 print and page 18 does not print.  Also, if you enter a print range of 9-9, page 8 prints and page 9 does not print.

    I have the Epson 4540 printer. I don't know for sure if it connects via AirPrint.  I didn't do any thing to set up Air Print.  The printer is attached directly to my network router and it shows up IPad apps.  I have not printed docs from other apps, but I will give it try and let you know.
    Christopher J. Bilcz
    [email protected]

  • HT204150 iCloud and my iPhone sync okay but my second Mac does not sync with iCloud. What's wrong?

    iCloud and my iPhone sync okay but my second Mac does not sync with iCloud. What's wrong?

    Check your settings in System Preferences > iCloud

  • PI 7.1 EHP1: RFC lookup does not pass the parameter values

    Hi,
    I am not sure if anyone came cross this issue:
    This is IDOC -> PI -> File scenario
    IDOC sender side, we used IDOC packaging, means in one message, we have mutiple IDOCs.
    There is RFC lookup function in message mapping, it takes 8 parameters. There are four contants value and four queue passed.
    We would like to call the RFC lookup for each IDOC sent.
    Saying we sent 10 IDOCs, the RFC was called 10 times, this is expected behavior.
    However, in 8 parameters, we miss four parameters values even we passed values
    Regards.
    Liang

    J Augastine:
    Thanks for the input.
    In blog, it talked about one RFC call for a mapping.
    In my situation, we need to multiple times of RFC, since this is EDI scenario, some elements need to be incremented.
    Previously, this RFC works without any problem. However we increased 4 parameters, for those parameter added laterly, it does not carry the value to RFC call, I tried to removed the function from ESR and re-import the RFC, but it still does not help.
    I also tried to pass constant value or queue value, it all does not help.
    Regards.
    Liang

Maybe you are looking for

  • Clockwiser

    Hi all, I have a clockface of images with a button, which when clicked should rotate the images clockwise around the clockface. There are 3 images per 'hour'. The images are placed via co-ords stored as x & y arrays. The button needs to advance the s

  • Finding all employees who come under the manager

    Hi experts, I have created a report which is attahced in MSS. So i want to restrict the manager to view the details of  only the employees who come under this manager.  At present the report is showing the details of all employees. So pls tell me whe

  • Can't download movies with QT Pro

    I downloaded the latest Safari update, and now when I try to download movies in mpg or wmv (using FlipMac) there's no downward arrow allowing me to do it.

  • Installing and signing in with adobe ID just spins

    I bought a download version of Photoshop Elements 13 - download went fine. Restarted computer and then installed, it brought up sign in to Adobe so I created ID and password and then it just keeps spinning. Can't complete installation or open the pro

  • Server.webBUIServer returns Process Admin but need Workspace port

    While attempting to provide a link to a particular activity in an email via BPM code I have used the following code in ALBPM 5.7. String instanceStampId = this.id.id.substring(first : 0, last : this.id.id.indexOf(text : "@")).encodeURL(); String strL