Formatting Tips, how can obtain the right  format?

how can obtain the right format of code,
http://forum.java.sun.com/help.jspa?sec=formatting
if is possible do a example.
Thanks in advantage

Wrap your code between [code] and [/code]
[code]
// Here goes my code
[/code]
looks like
// Here goes my code.

Similar Messages

  • How to get the right format if I copy data off another source....

    IWorks '08
    I have a data source that I want to copy to Numbers and it posts it all in the first row, when I paste it. (Excel will automatically format it correctly). I've tried a number of different things and can't figure out how to get the data to post across the page. Can Numbers even do this?

    Welcome to Apple Discussions
    Could you possibly have the insertion cursor blinking in the cell rather than just having a cell selected?
    If the cursor is blinking in the cell, Numbers "thinks" you want to paste all of the content in that one cell. By just selecting the cell, the data will be separated if Numbers "sees" the separations. This used to be a problem, particularly with data copied from a web page in Safari, but is mostly fixed in Numbers '09.

  • How can set the timestamp format in query component?

    I met 2 problems when I am using timestampTZ on query component.
    The first one, in the table, I have a field type is timestampTZ. And I have a query on this field. However, When I open the page, I found the date format is not what I want, can I change the format in the query component? Like from “mm/dd/yyyy” to “dd/mm/yyyy” in the search criteria. For the query component. I used bing variable. The bing variable I set to timestampTZ type.
    Another problem is, as in the database, the time has date and time, but in the query component, it only has date, so if I added a end date field, it only show the records before the end date. I think the parameter take the time as 00:00:00. Is there any way to fix this?
    Thanks a lot.

    Thanks a lot. I tried, but still not work, I can see the date with time. But I tried to execute the query, it threw exception (with/without date value). Is that because the field in database is timestampTZ?
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    java.lang.ArrayIndexOutOfBoundsException: 7
         at oracle.sql.TIMESTAMP.toTimestamp(TIMESTAMP.java:294)
         at oracle.sql.TIMESTAMP.timestampValue(TIMESTAMP.java:431)
         at oracle.jbo.domain.Timestamp.getData(Timestamp.java:433)
         at oracle.jbo.domain.Timestamp.getValue(Timestamp.java:421)
         at oracle.adfinternal.view.faces.convert.DomainConverter.convert(DomainConverter.java:67)
         at org.apache.myfaces.trinidadinternal.convert.GenericConverterFactory.convert(GenericConverterFactory.java:287)
         at org.apache.myfaces.trinidadinternal.convert.DateTimeConverter.getAsString(DateTimeConverter.java:95)
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:158)
         at oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(OutputTextRenderer.java:148)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1213)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:103)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1932)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:606)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:529)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:297)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:574)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:241)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:297)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:574)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:241)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1515)
         at org.apache.myfaces.trinidad.component.UIXGroup.encodeChildren(UIXGroup.java:138)
         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:57)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:410)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeFacet(DecorativeBoxRenderer.java:289)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer._encodeCenterPane(DecorativeBoxRenderer.java:442)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeAll(DecorativeBoxRenderer.java:258)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    ...

  • How to choose the right format picture?

    Hello, on my website [ 4ensure.com ] I've created the costum header and put there logo whic I created with adobe photoshop cs5.1 and when I scroll down the titles of pages down of them crosses the header text. The logo text is in JPEG format. I've tried PNG and some other formats but doesn't work. Which format I need to do the photo to make a solid background not to be crossed by anythig?
    I hope you understand what I'm asking?
    Thanks in advance!

    This has nothing to do with the image format. You need to read up on web design or simply pick a different WP theme that doesn't use a static header placement in an absolute DIV.
    Mylenium

  • How to choose the right format?

    Hello, on my website (2hinsurance.com) I've created the costum header and put there logo whic I created with adobe photoshop cs5.1 and when I scroll down the titles of pages down of them crosses the header text. The logo text is in JPEG format. I've tried PNG and some other formats but doesn't work. Which format I need to do the photo to make a solid background not to be crossed by anythig? I hope you understand what I'm asking?
    Thanks in advance!

    Delete in code
    position:fixed;
    http://hackcenter24.blogspot.com/index.html
    http://hackcenter24.blogspot.com/2013/05/iron-man-3-hacks-cheats-tools_12.html

  • How canI change the date format from mm/dd/yyyy to dd/mm/yyyy in FirefoxOS?

    I have just received and am trying out things my new Alcatel Fire E with FirefoxOS 2.0.0.0 (just updated).
    It is usual in most operating systems to be able to customize the date and time settings (amongst other things). After a few fruitless hours fiddling with the phone and checking various forums, I've come to the conclusion that this is currently not possible on my phone with this version of FirefoxOS. Or have I simply missed something?
    Achim

    ''mohd.afzal97 [[#answer-710207|said]]''
    <blockquote>
    Can u please me the method of updating phone to 2.0
    </blockquote>
    Since I don't have the old version anymore, the following might not be 100% accurate. Note that my device is in English.
    Go to the Settings app and select "Device information". You can either choose "Check now" or select "System Updates" and then "Check for Updates". If there is an update available you'll be notified. What it won't tell you is which version the new one is, at least I did not recieve that information. I thoughT I was updating to 1.4.x, not 2.0.
    You should be given the choice to either update or not. You can ignore the update if you want (like if you don't have the time, or something.
    A couple of words of warning:
    1. Make a backup of any important data first.
    2. It takes quite some time to download all the update data and this might bust your limit depending on what your service provide allows. I avoided this by doing the update whilst connected to a WLAN (also known as WiFi) which has no data restriction. This can be set in "Check for Updates > Settings".
    Hope that helps.
    Achim

  • How to obtain the default serie for a document

    Hi,
        Anybody know how can obtain the default serie for a document throw a query??
    I can`t see the relation between the ONNM and the NNM1 tables because the 'dfltseries' field of the ONNM not corresponding with the 'Series' field of the NNM1.
    For example for an A/P Invoice
    Thanks!!

    Hi Mariano,
    According to the SDK Help file, you need to query the NNM2 table
    Series Default
    Table name: NNM2
    ObjectCode     UserSign     Series     DocSubType
    So, the query to retrieve the A/P default series for the manager user would be:
    SELECT T0.Series FROM [dbo].[nnm2] T0 WHERE T0.ObjectCode='13' AND T0.UserSign = 1
    From the SDK you can replace the T0.UserSign = 1 for T0.UserSign = oCompany.UserSignature to retrieve the default series for the current user...
    Regards,
    Vítor Vieira

  • I have some unfinished projects in an old iMovie format. How can I finish them using the new iMovie? When I open them it says it doesn't support powerPC format

    I have some unfinished project in an old iMovie format. If I try to import them to the new iMovie to finish them it says I can't because it does not support powerPC formats. How can I save them???

    Right click on the icon and choose "Show Package Contents".
    Drill down through the folders to find your original source clips (probably .dv files). Drag them to a new Desktop folder to import them into iMovie.

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • When I listen to music on Apple TV 2 my pictures from iPhoto come in, but always the same album (which I nevr asked for), always in random order and always in a different format. How can I control what is going on and choose the album myself.

    When I listen to music on Apple TV 2 my pictures from iPhoto come in aafter about ten minutes, but always the same album (which I never asked for), always in random order and always in a different format. How can I choose a different album myself and control the order and format?

    Thank you Winston for a helpful response and for reminding me of something which I found nearly a year ago and then lost (in my mind) because I did not use it. I am grateful for a correct answer but it still only achieves part of what I wanted.
    I can now choose my photos, decide how long they stay on screen and choose one of a variety of presentations. Two things I still can't do.
    One is to get it to play the photos in the chronological order in which I have carefully set them in an album; it still tends to be random and repetitive. The other is that I cannot get any of them them to saty on screen for more than about 20 seconds. I guess this is all due to the way Apple TV is constructed.
    But still thanks, nevertheless.
    Alec

  • I have Adobe Photoshop CS5 installed in two computers. The hard drive of my home computer crashed and I had no time to deactivate the software. The hard drive needed to be formatted. How can I activate the software CS5 again ? Thank you for an answer.

    I have Adobe Photoshop CS5 installed in two computers. The hard drive of my home computer crashed and I had no time to deactivate the software. The hard drive needed to be formatted. How can I activate the software CS5 again ? Thank you for an answer.

    If it's the same computer, same CPU and same HD, no de-activation or re-activation should be necessary.
    Install from scratch and apply all updates manually.
    Please do a forum search.  I and others have repeatedly answered the question about failed updates of CS5 a whole bunch of times recently.
    Bottom line:  the Adobe auto updater is utterly useless in CS5 and prior versions.  You need to download the updates and apply them manually yourself.
    I and others have even supplied the links for Mac and Win, which you haven't even bothered to specify.

  • PAL or NSTC, how can i tell what format the vid clip is?

    The 2nd abbreviation might be wrong...
    concerning vid clips
    How can you tell what format clips are in before iMovie tells you?
    I don't want to combine the formats and cannot figure a way to tell the difference before trying to burn the dvd

    At the top of the iMovie project window it will tell you by giving the name you gave to the project as well as 'DV NTSC, or DV NTSC Widescreen.
    Somewhat confusingly, when you set your choice of NTSC or PAL in iMovie's preferences when starting a new project (you can't switch later), these are only identified as 29.95 fps (which is NTSC) and 25 fps (which is PAL). Once you have set that, all iMovie projects you start will default to the same until you change it. You cannot combine the formats in the same project.
    As you are in the USA yours will probably default to NTSC which is the TV system you use there. In Europe we set it to PAL which is what we use here.
    A bit rudely, we also say that NTSC stands for 'Never The Same Colour Twice'!
    PAL used to stand for 'Prolongs Active Life', but that was actually the tag-line in a dog food commercial! But they are useful mnemonics to remember them by!

  • When converting word to PDF and reducing the size, the formatting changes how can i keep the format but reduce the size?

    When converting word to PDF and reducing the size, the formatting changes how can i keep the format but reduce the size?

    The original file is 32 MB:
    15 MB is images
    15 MB is Content stream
    2 MB is everything else
    After the PDF/A-1B save as:
    The file is 182 MB
    Almost 100% is Images
    It is an architecture portfolio with many complex images.  Is there a setting when I change to PDF/A that can limit the growth of the image files?

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

Maybe you are looking for

  • Problem in Cancelling Excise Invoice

    We create excise invoice for both exports and local sales for manufacturing items. But the problem is we maintained same number range for both objects: J_1iexcloc , J_1iexcexp     (i dont know how system accepted). So same excise numbers are allocati

  • How do I switch Timecode on a reel after someone has started using it?

    Hello all, I could really use some help on this one... I captured a digital reel of a feature and forgot to set the timecode to start at the hour.  Therefore, instead of cutting with a reel that started at 01:00:00:00, it started at something like 1:

  • File download from DMS into Webdynpro for ABAP application

    I need to download the file from DMS content server on the PC and with my application on clicking of file name, file needs to be displayed. To achieve the downloading part I tried BAPI_DOCUMENT_CHECKOUTVIEW2, but it is not working. If I pass the para

  • Deploying JDeveloper(10.1.3) App to Application server (10.1.2)

    Hi there, I am experiencing a problem trying to run an application that I deployed: The application was developed in Jdeveloper and it includes the Struts framework. The deployment goes through successfully. However, when I try to run the application

  • Congested 4G During Most of Day

    A few weeks back I called Verizon after having a couple months of very slow 4G speeds. I started "troubleshooting" myself by running the Speedtest.net app. Anyway, I was sent a new SIM card (that did nothing to help) but thought I'd humor Verizon by