Awesome Site with Example Code For All Classes

Very cool site that has example code for all the Java classes and APIs. You can submit example code yourself too!
http://www.kickjava.com/

kevjava wrote: Some things that I think would be useful:
Suggestions reordered to suit my reply..
kevjava wrote: 2. Line numbering, and/or a line counter so you can see how much scrolling you're going to be imposing on the forum readers.
Good idea, and since the line count is only a handful of lines of code to implement, I took that option. See the [line count|http://pscode.org/stbc/help.html#linecount] section of the (new) [STBC Help|http://pscode.org/stbc/help.html] page for more details. (Insert plaintiff whining about the arbitrary limits set - here).
I considered adding line length checking, but the [Text Width Checker|http://pscode.org/twc/] ('sold separately') already has that covered, and I would prefer to keep this tool more specific to compilation, which leads me to..
kevjava wrote: 1. A button to run the code, to see that it demonstrates the problem that you wish for the forum to solve...
Interesting idea, but I think that is better suited to a more full blown (but still relatively simple) GUId compiler. I am not fully decided that running a class is unsuited to STBC, but I am more likely to implement a clickable list of compilation errors, than a 'run' button.
On the other hand I am thinking the clickable error list is also better suited to an altogether more abled compiler, so don't hold your breath to see either in the STBC.
You might note I have not bothered to update the screenshots to show the line count label. That is because I am still considering error lists and running code, and open to further suggestion (not because I am just slack!). If the screenshots update to include the line count but nothing else, take that as a sign. ;-)
Thanks for your ideas. The line count alone is worth a few Dukes.

Similar Messages

  • Example codes for each and every class in API

    hi,
    Is there any place where i can get example code for eacha and every class in java API.
    for eample...if i wanna find sample codes for all the clases in java.lang.*
    please let me know ASAP.
    thanks in advance

    Try this
    http://www.javaalmanac.com/egs/
    It's almost complete, but you could help mr. Patrick Chan to write more samples for the few classes left in the Java API...

  • Example code for each and every class in java API

    hi,
    Is there any place where i can get example code for eacha and every class in java API.
    for eample...if i wanna find sample codes for all the clases in java.lang.*
    please let me know ASAP.
    thanks in advance

    Crossposted here: http://forum.java.sun.com/thread.jsp?thread=570264&forum=54&message=2820774

  • All my contacts are stored with country code for eg   233 244 123456. Contact names do not appear during incoming calls. Once the country code is removed , names appear. Please help

    All my contacts are stored with country code for eg   +233 244 123456. Contact names do not appear during incoming calls.
    Please help

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • How to find open SO Items with tax code for a particular day?

    Dear all
    If i want to see all open SOs(items), with tax code for a particular day, how to find using table VBAP in SE16?
    Please guide me
    Edited by: Julius Bussche on Mar 3, 2009 11:10 PM
    Please use descriptive subject titles and the search

    Hi GB,
    Its always better to see through the standard reports , as you will be able to see the aditional info as well.
    In the case of table in se16 you will be able to see one table at a time and then you need to manually figure out the fields that required.
    For example if you want to see the sales order details through tables then
    1.You have to go to VBAK to see the document type and then you need to go to VBAP to see the items , it means that you need to access 2 tables for this simple thing ....
    In standard reports there will be lot of joins between the tables and you can view the data more elobarately as weel.
    Note : In general if you want to see the complete details of the documents(open), then pls use the reports.
    Regards,
    Vvieks

  • Display address omitted postal code for all countries in sapscript

    Hi everyone
    Does anyone know how to omit the postal code for all countries(eg. US ) when displaying address in sapscript form?
    I want to avoid to display postal code even the country is US.
    coz my firm doesn't want to show postal code.....
    Also, how to use combination keys of PRIORITY parameter?
    For example, if i want PRIORITY '1' 'S' 'L' 'N' 'C'
    I cannot write like this as following....
    /:   ADDRESS DELIVERY PARAGRAPH AS <b>PRIORITY 1 S L N C</b> LINES 5
    /:   ADDRESSNUMBER &VBDKR-ADRNR_WE(K)&
    /:   FROMCOUNTRY &VBDKR-SLAND&
    /:   ENDADDRESS

    Hi,
    Bold text describes the usage of <b>Priority</b>.
    ADDRESS: Formatting of addresses
    The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the
    destination country defined in the parameter COUNTRY. The reference fields are described in the
    structure ADRS. Both constants and symbols can be assigned to the parameters.
    Syntax:
    /: ADDRESS [DELIVERY] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: STREET street
    /: POBOX PO box [CODE zip code]
    /: POSTCODE zip code
    /: CITY town1[,town2]
    /: REGION region
    /: COUNTRY country
    /: FROMCOUNTRY from country
    /: ENDADDRESS
    Both formatting data and address data are given as parameters. Address data is formatted for output in accordance with the parameters COUNTRY, PRIORITY and LINES. If available, the P.O. box is used instead of the street as the default.
    •&#61472;DELIVERY: Defines the street address. If this parameter is selected, the system prints the street address on the layout output instead of the P.O. box.
    •&#61472;PARAGRAPH: Defines in which paragraph format the address is output. If the parameter is not defined, the address is output in the default paragraph format.
    <b>•&#61472;PRIORITY: Defines which address lines can be omitted if necessary. You can enter a combination of the following values:
    A form of address
    P mandatory blank line 1
    Q mandatory blank line 2
    2 name2
    3 name3
    4 name4
    L name of country
    S line for the street
    O line for the city
    </b>
    •&#61472;LINES: Defines how many lines are available for formatting the address. If all the address data cannot be formatted due to an insufficient number of lines, the data entered in the parameter PRIORITY is omitted. If the LINES specification is missing and this command is in a layout set window whose type is not MAIN, the lines available for the address layout are then calculated automatically by means of the current output line item and window size.
    •&#61472;TITLE: Required form of address.
    •&#61472;NAME: Up to four separate names, separated by commas, can be defined.
    •&#61472;STREET: Street specification including address number.
    •&#61472;POBOX: Post Office box number.
    •&#61472;CODE: P.O. box Postal or ZIP code if it is different from the postal code of the city.
    •&#61472;POSTCODE: Postal or ZIP code of the city.
    •&#61472;CITY: Up to two place names can be defined.
    •&#61472;REGION: Determines the administrative area.
    •&#61472;COUNTRY: Specifies the country according to whose specific postal standards the address    is formatted.
    •&#61472;FROMCOUNTRY: Defines in which language the name of the destination country is formatted. In EC countries, only the international country identification letter is put before the postal code with a hyphen.
    Example:
    /: ADDRESS
    /: TITLE ‘Company’
    /: NAME ‘Widget Technology, Inc.’, ‘All Kind of Widgets’
    /: STREET ‘1005 Lido Lane’
    /: POBOX ‘2935’ CODE ‘94400’
    /: POSTCODE ‘94404’
    /: CITY ‘Foster City’
    /: REGION ‘CA’
    /: COUNTRY ‘USA’
    /: FROMCOUNTRY ‘USA’
    /: ENDADDRESS
    Generates the following address:
    Company
    Widget Technology, Inc.
    All Kind of Widgets
    PO box 2935
    Foster City, CA 94400
    If the supplement DELIVERY is specified for the command ADDRESS, then the street is entered instead of
    the PO box.
    Company
    Widget Technology, Inc.
    All Kind of Widgets
    1005 Lido Lane
    Foster City, CA 94404
    Regards,
    Sailaja.
    Reward points if answer helps you.

  • I want the example code for Calendar() and TimeZone() in java

    Hi,
    I want the example code for the TimeZone() and Calendar() class in java
    because i new to java, i am not able to understand the concepts properly.
    Thanks...

    Hi Paolo Dema.
    What are the exact spefications of your computer?
    Also did you computer come with 10.6 ot 10.5?.
    You may try entering the MPN (marketing part number) Format: M*****/**
    The MPN can be found on the product packaging or the System Profiler.

  • Help Needed with HTML code for Image Positioning

    Hi All,
    Need a little help with some code for positioning images.
    I initially used the following:
    This is fine, but the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I also used the following code with success:
    <style type="text/css"
    img
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    This code works, however the problem with it is it is not individual to just one photo - it moved all my photos and on that page, I wanted one photo floated to left and another to the right.
    If I use this code, how can I make it photo specific, so that it only affects the placement, margins and borders of one photo?
    Any help would be great.
    Thanks

    CSS question, not iWeb question. Regardless, use inline CSS styling for the image. You can also wrap the image in its own tag and declare an id or simply declare an id for the img tag, then set the style for the id_name:
    <style type="text/css"
    img#id_name
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    If you want to control the style of more than one image on a page but not all then use a class instead of an id.
    the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I believe you have discovered a solution for this according to your CSS code. You have set the border to white by looking at the code and adjusting it appropriately. Your margin is declared in the CSS also, adjust the pixels appropriately.
    Read up some more on CSS to educate yourself further. I suggest w3schools.com or a CSS forum instead of the iWeb forum if you have CSS questions. It's kind of like if you drive your auto to the supermarket so you decide to go to the supermarket and ask everyone in the produce section to help when you have car problems. All the supermarket does is provide a place to park your auto. If you have car problems then ask a mechanic. iWeb (and most of its users) doesn't specialize in code, it simply provides an area for you to place it. Granted you might get lucky and find a mechanic in the produce section of the supermarket, but you're more likely to find a specialist at an auto swap meet (or CSS coding forum)!

  • Ricoh Aficio MP C4501 with access codes for color printing

    Hi,
    I read the discuss called "Ricoh 3245C with access codes for color printing", and I have a similar problem with a Ricoh MPC4501 printer. The printer is connected to many Windows PCs and my brand new iMac. It requires just User Codes authenication. PostScript is not installed on the printer (could this be the problem?). I've tried all the suggestions brought up in the mentioned discussion but I still can't print. It seems like the printer is not connected to the Mac. Here are the answers to the questions asked in the previous discussion:
    Is PostScript module installed?
    No, I guess. PS is not one of the languages included on the Configuration Page.
    What languages does your printer understand?
    RPCS [3.10.14], PCL 5c [1.02] and PCL XL [1.02]
    What drivers are you using?
    I tried the one from the Ricoh site for OS10.8 (http://support.ricoh.com/bb/html/dr_ut_e/ra/model/mpc41/mpc41en.htm) as well as the driver (three downloads) from Linux (http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/pxlmon o). Neither worked. It might be helpful to mention that the Linux driver enabled me to print to a Ricoh Aficio MP 4001 that doesn't require authentication.
    How are you entering your User Code?
    Depending on the application. For Adobe apps, which are my main concern, I would have to click on the Printer button in the Print dialog to open the system Printer dialog, then enter the user code there under Job Log. I had to use the script provided in the previous discussion (http://webpages.charter.net/mbroughtn/beta/RicohUserCodes.zip) to add my User Code.
    How are you connecting to the printer -- what protocol?
    I'm not sure. I didn't find any of the protocols cited in the previous discussion on the Configuaration Page. If it helps, I know that the printer has an IP address on the network. And as I mentioned, it's mainly connected to many Windows PCs.
    Any help is appreciated. Thanks.

    Can't help with user codes, but I suggest you try IP HP jetdirect first whenever you add an enterprise net printer. You could always look on a windows computer for printer port configjration. There, you will find jetdirect called raw port 9100 protocol.

  • Incoming payments - payment on account example code for 8.8

    Hi
    Would anyone have example code for SAP B1 8.8 of an incoming payment - payment on account example please
    Thanks
    Regards Andy

    Hi Ed
    Thanks
    I actually had a problem with my own code but it turned out someone gave me the wrong gl code to use !
    Thanks again
    Regards Andy

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Example Code for Routine at Data Target in Info Package.

    Hi,
    Can any one send the example code for writing the routines at Data Target of Info Package for Deleting the Request from Info Cube after Update.
    Thanks in Advance,
    Regards,
    srinivas

    Hi All,
    I want to know some examples for guidance in writing the Abap Routine at Data Target of Info Package for Deleting the Request from Info Cube after Update.
    In the Data Targets of Info Package for Info Cubes we can delete the previous request based on the Conditions, exceptions and also based on the Abap Routine. I just want to know how do we write the Routine.
    This option is adjacent to the Maintain to Data Target in Data Targets of Info Package and will available for Info cube only.
    Thanks in Advance,
    Regards,
    srinivas

  • Could you provide example code for interactive form

    Dear all.
    I have got document at link below
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    In that document it has some part of abap code.
    Could you have full example code for interactive form online and offline?
    Thank you very much.

    Hi,
    Go to the following link to know more about adobe interactive form.
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
    The following link contains a offline application in ABAP. You can try it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    For further questions, check the follow
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
    Hope this helps!!
    Regards,
    Arafat

  • OTL: Timecard Audit Template require reason code for all transaction.

    We are currently using OTL with CLA template with interface time entry from external system.
    When monthly time entry interfaced into OTL each employee have to review and update their time and submit to manager, but when process to audit template they has been forced to update reason code for all transactions.
    We suppose to update the reason code only for the modified transactions. Please help me.
    Nonny.

    nondhasid,
    If you are not modifying those records which are asking for a reason field to be filled, then it should be coming from the Late setup. Check the CLA setup.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                       

  • Example code for BAPI_NETWORK_MAINTAIN

    Hi All,
    I need to create a network, network activity and its components using BAPI (BAPI_NETWORK_MAINTAIN).
    Can any one tell me out to find the mandatory tables and its parameters.
    if possible with example code.
    One More question, when i am creating a network, Which network number do i need to pass as objectkey in IMETHOD table ?
    Same number i need to pass in INETWORK table also?
    Do i need to use some existing number or the number will be assigned by system?
    When the BAPI ends with error, i can see error messages in message table.
    if BAPI is success, does it give any messages like success message.
    Thanks,
    Swapna.

    Hi,,
    See the example
    create network ***********
    if not network is initial.
        MOVE '000001' TO itnetmethod-refnumber.
        MOVE 'NETWORK' TO itnetmethod-objecttype.
        MOVE 'CREATE' TO itnetmethod-method.
        MOVE  network TO itnetmethod-objectkey.
        APPEND itnetmethod.
        MOVE '000000' TO itnetmethod-refnumber.
        MOVE ' ' TO itnetmethod-objecttype.
        MOVE 'SAVE' TO itnetmethod-method.
        MOVE  ' ' TO itnetmethod-objectkey.
        APPEND itnetmethod.
        MOVE network TO itnetwork-network.
        MOVE network_type TO itnetwork-network_type.
        MOVE vplant TO itnetwork-plant.
        MOVE 'NEW NETWORK' TO itnetwork-short_text.
        MOVE wbs_element TO itnetwork-wbs_element.
        MOVE '001' TO itnetwork-mrp_controller.
        MOVE project_definition TO itnetwork-project_definition.
        MOVE profile TO itnetwork-profile.
        APPEND itnetwork.
          REFRESH itemsg.
          CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
       IMPORTING
            RETURN                      =
               TABLES
                  i_method_project            = itnetmethod
                  i_network                   =  itnetwork
            I_NETWORK_UPDATE            =
            I_ACTIVITY                  =
            I_ACTIVITY_UPDATE           =
            I_RELATION                  =
            I_RELATION_UPDATE           =
               e_message_table             = itemsg.
            I_ACTIVITY_ELEMENT          =
            I_ACTIVITY_ELEMENT_UPDATE   =
            I_ACTIVITY_MILESTONE        =
            I_ACTIVITY_MILESTONE_UPDATE =
          IF sy-subrc = 0.
          ENDIF.
        LOOP AT itemsg.
          MOVE : itemsg-method to network_create_error-method,
                 itemsg-object_type to network_create_error-OBJECT_TYPE,
                 itemsg-internal_object_id to
                 network_create_error-INTERNAL_OBJECT_ID,
                 itemsg-external_object_id to
                 network_create_error-EXTERNAL_OBJECT_ID,
                 itemsg-message_id to network_create_error-MESSAGE_ID,
                 itemsg-message_number to
                 network_create_error-MESSAGE_NUMBER,
                 itemsg-message_type to network_create_error-MESSAGE_TYPE,
                 itemsg-message_text to network_create_error-MESSAGE_TEXT.
           append network_create_error.
           clear itemsg.
         endloop.
          COMMIT WORK .
          WAIT UP TO 1 SECONDS.
      endif.  "if not network is initial
    Regards
    Mudit

Maybe you are looking for

  • IOS4 landscape photos sideways in e-mail

    I've e-mailed photos, taken in landscape mode, on iOS 4 (3G and iPhone 4) and they're sideways. It seems that iOS no longer orients landscape photos correctly before e-mailing them. Other's have noted the problem here: http://forums.macrumors.com/arc

  • Install itunes 7.x.x.x twice

    Can I install the same version of iTunes twice on the same computer? I want to install it to two diff directories but can't work out how. Once I install it the first time the only option I am given the second time is to remove or repair. Thanks in ad

  • Delivery Date in PR/PO

    Hi, need help! How to config delivery date such that it cannot be earlier than request or PR/PO date? In what tcode to config it? Thanks in Advance!

  • Alert log: Private strand flush not complete

    We are runnig Oracle 10.2 I noticed we are getting "Private strand flush not complete" line in alert log file. Here is the snippet from the actual alert log file. Thu Aug 31 06:27:23 2006 Thread 1 advanced to log sequence 17998 Current log# 3 seq# 17

  • Friend(really) just erased & trashed iTunes database....

    I just received a panic email from a friend who said she just erased & trashed her entire iTunes database. Is there something on her Mac(Intel iBook OSX10.4.10)that she can use to recover it; or even a software program she has or can get? I guess one