Java book/ebook or training site with examples

Hello,
I need to improve myself on java basics, got a few books which explain a lot, however they don't have any examples. What I need is a book or tutorial_site which first introduces a topic then asks the reader to experience it on various examples to see different aspects.
Thank you.

Just a side note:
If you haven't already done so, I suggest your next step is to download the Eclipse IDE and get familiar with it (its free and used by a very large number of professional developers). You can create projects within it. However, I suggest you first create a few code samples from your introductory Java book using a text editor and compile using the DOS command window before moving onto an IDE so you can appreciate what it does for you.

Similar Messages

  • 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.

  • Any good Java books with Business Examples ?

    Can anyone recommend a Beginner Java book that has some good Business Examples ?
    (Don't recommend the SUN tutorial, as their examples are more for the rocket scientist).

    Not sure what you mean by business examples, but here goes.
    Check out Wrox for some excellent books - not all excellent.
    Check ot samspublishing for the same.
    I have a superb book called Learning java (O'Reilly) that I would recommend to anyone. It lacks complete examples, which I usually rely on, but is a major piece of work for the novice - I have found a large part of this book on the web also, can't remember where.
    My very favourite read is Wrox - J2EE Java server pages
    I would stilll recomend avoiding books by Manning which are generally incomplete and point to other books they have published for this other info.
    best,
    Kev

  • I keep receiving the following error code: 1025 Duplicate Folder Name [Gmail]/Drafts/√ Orders/Books/Books/eBooks (Failure)

    Duplicate folder name [Gmail]/Drafts/√ Orders/Books/Books/eBooks (Failure)
    (/[Gmail]/Drafts/&Iho- Orders/Books/eBooks/)

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How can I save a page and all its component parts in a single file, like IE does as an MHT - it's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)

    how can I save a page and all its component parts in a single file, like IE does as an MHT?
    It's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)
    It is simply too painful to have to zip everything up into a single file to send. MHT format has been available for years now from IE, and with every new FF release it's the first thing I look for. I have been using FF for years, and hate having to come out of it, over into IE |(which I even took out of startup) and key everything in again, in order to send somebody something in a convenient format that they can open with a single click.
    I can't believe this hasn't been asked before, so have you looked at it and rejected it? Have MS kept the file format secret?
    Thanks
    MG

    This is not really an answer just my comments on your question.
    I am sure I recollect efforts being made to get mhtml to work with FF.
    Probably the important thing to remember about .mhtml is that if other browsers do support it they may need addons, and may not necessarily render the content correctly/consistently.
    There are FF addons designed for archiving webpages, you could try them, but that then assumes the recipient has the same software.
    You could simply save the page from FF to your XP pc; then offline open it with and save it using IE, before then emailing using FF, and attaching the .mht or mhtml file that you have now created on your PC.
    As an alternative method, in some cases it could be worth considering taking a screen grab of the required page, then sending that to the recipient as a single email attatchment using either a bitmap or jpeg file format for instance.
    Something such as an airline booking may be designed with a print option, possibly it could be worthwile looking at sending the print file itself as an email attachment.

  • What to do? When on a site with a PDF download I wish to open, the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled.

    When on a site with a PDF download I wish to open, when I click on download the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled. The new tab will sometimes flash black then go white with nothing else happening or just go white & nothing else?

    I had the same problem and also had PDF Download 3.0.02 installed. By removing this addon I can now select a PDF document which then opens up a normal Open With/Save dialogue allowing me to open the file or save it. Hope this helps.

  • Web site with Java Scripts ( on iphone4)

    try to open a web site with Java scripts , but it just show empty on the scripts section , anyone can help ? (on iphone 4 with iOS 4.1)

    Hi, welcome to Apple Discussions.
    Web pages that make use of Javascript should work just fine. Those that have embedded Java applications won't. Java & Javascript are two different animals despite the similarity in the names. Like Flash, Java is not supported on iOS.
    tt2

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • Strange happenings with examples from Tom Kyte's book. 10 XE

    Hi all,
    I was twiddling my thumbs and decided to brush up on some of Oracle's fundamentals.
    Tom Kyte's book - Effective Oracle by Design. Examples on pp. 141 - 142 (to do with
    bind variables). Typed in the example and obtained a very strange system reaction.
    It consists of a package "DEMO_141_PKG" with 1 procedure "parse_bind_execute_close"
    which is called by the procedure QUICKFIX142.. The system then proceeds to go mental.
    If anybody could explain to me what's going on, I would be grateful. I'm running 10 XE on
    Ubuntu Linux.
    On running the code (below) I get this in the "Run" window of SQLDeveloper.
    Connecting to the database demo.
    ORA-01000: maximum open cursors exceeded
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 884
    ORA-06512: at "SYS.DBMS_SQL", line 9
    ORA-06512: at "DEMO.DEMO_141_PKG", line 17
    ORA-06512: at "DEMO.QUICKFIX142", line 8
    ORA-06512: at line 2And the logging window of SQLDevloper just shows a continuous
    stream of the text below - I have to kill the sessions as SYS from
    within Oracle - the Terminate process from within SQLDeveloper
    doesn't manage to kill this runaway process.
    Logging output
    SEVERE     2474100     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474099     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474098     0     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474097     0     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474096     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    <Millions of lines snipped - it just keeps going>Now, the code is here for those who would like to help me get to the bottom of this phenomenon.
    create or replace
    PACKAGE DEMO_141_PKG AS
    procedure parse_bind_execute_close(p_input in varchar2);
    END DEMO_141_PKG;
    create or replace
    PACKAGE BODY DEMO_141_PKG AS
      g_first_time boolean := TRUE;
      g_cursor number;
    procedure parse_bind_execute_close(p_input in varchar2)
    AS
      l_cursor number;
      l_output varchar2(4000);
      l_status number;
    BEGIN
      l_cursor := dbms_sql.open_cursor;
      dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
      dbms_sql.bind_variable(l_cursor, ':x', p_input);
      dbms_sql.define_column(l_cursor, 1, l_output, 4000);
      l_status := dbms_sql.execute(l_cursor);
      if(dbms_sql.fetch_rows(l_cursor) <= 0)
      then
        l_output := null;
      else
        dbms_sql.column_value(l_cursor, 1, l_output);
      end if;
    END parse_bind_execute_close;
    END DEMO_141_PKG;and the above is called here
    create or replace
    PROCEDURE QUICKFIX142 AS
    BEGIN
    -- demo.runstats_pkg.rs_start; // Don't worry about  runstats - it's a Tom Kyte package for
    -- timings and measuring contention.
      execute immediate 'alter session set session_cached_cursors = 0';
      for i in 1..1000
      loop
        DEMO_141_PKG.parse_bind_execute_close('Y');
      end loop;
    -- runstats_pkg.rs_middle;
      execute immediate 'alter session set session_cached_cursors = 100';  // reduced this to 50, 20, 10 & 5 - no effect.
      for i in 1..1000
      loop
        DEMO_141_PKG.parse_bind_execute_close('Y');
      end loop;
    -- runstats_pkg.rs_stop;
    END QUICKFIX142;Edited by: Paulie on Aug 12, 2011 2:18 PM

    If you modify the called package by adding :
      -- CLOSE THE CURSOR
      dbms_sql.close_cursor(l_cursor);in
    procedure parse_bind_execute_close(p_input in varchar2)
    AS
      l_cursor number;
      l_output varchar2(4000);
      l_status number;
    BEGIN
      l_cursor := dbms_sql.open_cursor;
      dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
      dbms_sql.bind_variable(l_cursor, ':x', p_input);
      dbms_sql.define_column(l_cursor, 1, l_output, 4000);
      l_status := dbms_sql.execute(l_cursor);
      if(dbms_sql.fetch_rows(l_cursor) <= 0)
      then
        l_output := null;
      else
        dbms_sql.column_value(l_cursor, 1, l_output);
      end if;
      -- CLOSE THE CURSOR
      dbms_sql.close_cursor(l_cursor);
    END parse_bind_execute_close;
    END DEMO_141_PKG;Then script runs with default OPEN_CURSORS setting:
    SQL> connect / as sysdba
    Connected.
    SQL> show parameter open_c
    NAME                                 TYPE        VALUE
    open_cursors                         integer     300
    SQL> connect test/test
    Connected.
    SQL> exec quickfix142;
    PL/SQL procedure successfully completed.

  • Having some problems with JAVA sites with safari, opera and firefox

    I work with some online java application for my work. Since I updated to Leopard, I cant access the site with safari, I loose some options with Opera and Firefox...
    Is it the JAVA that is not up to date with leopard?
    Any updates soon?
    Help!!!

    I have experienced memory leaks with the jvm on Leopard. Seem they took a huge step backwards instead of forward.
    It should be obvious by now that they didn't include 1.6 as many publications alluded to (Still haven't seen any explicit word from Apple where they officially said "Yes, Leopard WILL have JVM 1.6 at time of launch".)
    Don't know if the url below will get filtered out, but many other (non-Apple controlled) forums have been saying nasty things about Apple not explaining themselves for this major snafu.
    The article is titled, "So Long Apple. The Party's Over" and hosted by Java Lobby dot org.
    http://www.javalobby.org/java/forums/t102936.html

  • Wanted R/3 ISA B2C with example.

    Hello All,
    I am new in this field and would like to have document about creating Step by step an ISA project with NWDS for B2C scenario and B2B scenario NOT on CRM but on R/3 edition.
    Please send it to me on my email address [email protected]
    I really appreciate any one help in this matter and also pl. tell me if there are other helpful site on which I can read about how to start programming in r/3 ISA B2C with example.
    Thanks in Advance.
    Rajesh

    Hi Rajesh
    I'm working with Rapidigm-Fujitsu Consulting Co. in pune..
    Now I've successfully deployed and configured the ISA..
    I've also created the users in the CRM and assign
    respective roles to them ..
    Below is the procedure to deploying and configuring
    the CRM ISA B2B Application :
    Before starting I assume that you have following
    compoonents with you.
    1.) SAP J2EE Engine 6.2
    2.) ISA WAC SP03
    3.) MSSQL SERVER 2000 (Optional, If u need to use
    JavaBasket in ur application)
    Procedure :
    1.) Extract ISAWACSP03.sar file using command sapcar.exe
    2.) You will get following archive files :
        a.) Novell_LDAP.sda
        b.) SAPPortalsUMRefrence.sda
        c.) useradmin.ear
        d.) webcatadmin.ear
        e.) shopadmin.ear
        f.) b2b.ear
        g.) b2c.ear
        h.) and many other files..
    3.) Also download the latest JBasis Library from service.sap.com..
    4.)Open the SDM tool integrated with SAP J2EE ..
    5.)Deploy the JBasis_<LatestVersion>.sda using SDM.
    6.)Deploy Novell_LDAP.sda using SDM
    7.)Deploy SAPPortalsUMReference.sda using SDM
    8.)Deploy Useradmin.ear using SDM .
       Note before deploying the useradmin you have to specify the path of the xcm, always take it in the another directory eg. : C:\usr\sap\rp0945\java\xcm\useradmin
    also give the other parameters before deploying the application
    9.) Follow the above procedure for shopadmin.ear and webcatadmin.ear and deploy the application.
    the xcm path
    ->for shopadmin: C:\usr\sap\rp0945\java\xcm\shopadmin
    ->for webcatadmin: C:\usr\sap\rp0945\java\xcm\webcatadmin
    10.) To deploy the b2b.ear I'll suggest you to first build
    the application using BuildTool(For more info on
    Buildtool see the sapnotes on service.sap.com)
    11.) After building deploy the application (b2b_<NameGiven>.ear eg. b2b_client.ear ) in the
    "project_ear" folder of your buildtool directory.
    Note:  Before deploying b2b application you have to
    provide certain paramters (like xcm path etc.) in the
    lower left frame of the SDM window.
    If the parameter option are denoted with red icon then there are certain parameters left for deployment..
    The parameter icon should be green to successfully deploying the application ...
    12.) Now test the application by opening the url
    http://localhost:50000/b2b_client/b2b/init.do
    13.) You will get the b2b index page on your Web Browser.
    14.) Till now we have completed the deployment procedure of B2B, Now some configuration part is left to
    successfully running the application ...
    CONFIGURING THE ISA ..
    There are 2 types of configuration involved in the ISA :
    1.) At the CRM Server level
    2.) At the Application level
    1.) CRM Server level Configuration :
    This configuration includes the creation of Users
    and assigning the roles to the Users..
    We have to create 2 type of users :
      a.) Service User (RFC Enabled users)
      b.) Dialouge User
    a.) Service User :
       1.) Open the transaction SU01 and give the username="WEBCONNECT"
       2.)  Assign the type of user = "Service"
           Maintain a valid email address
       3.) In the roles tab, add a user role = "SAP_CRM_ISA_ITS"
          Give the alias name of the user : "WEBCONNECT"
       4.) Click on "SAVE"
       5.) Create another user namely "WEBCONNECT1" and assign
          the same role to it.
          Maintain a valid email address and give the alias
          name : "WEBCONNECT1"
       6.) Click on "SAVE"
    b.) Dialog User
       1.) Open transaction SU01
       2.) Create another user namely "WEBADMIN"
       3.) Maintain the email address for this user
       4.) Assign the following roles to it :
           -> SAP_CRM_INTERNET_CUSTOMER
           -> SAP_CRM_ISA_UA_SUPERUSER
           -> SAP_CRM_ISA_WEBSHOP_MANAGER
       5.) Click on "Save"
       6.) Close the CRM Gui client and login with this user
           (WEBADMIN) and then change the password.
    2.) Application Level configuration using XCM
       a.) open url :
           http://localhost:50000/useradmin/admin/xcm/init.do
           Login with Username : Administrator
                      Password : <blank>
       b.) Now in the Menu Components->Customers->jco
          create ur own jco configuration for eg: I've created
          with configuration name  "jco_myconfig"
       c.) Provide the Following Parameters
           Base Configuration : SERVER_CONNECT
           ashost : crmserver.company.com
           client : 100
           lang   : en
           maxcon : 100
           passwd : <your WEBCONNECT password>
           sysnr  : 00
           user   : WEBCONNECT
        d.) save the configuration and click on "run test"
        e.) If you get the green screen then
            "connection succeeded" else you will get a Red
            Screen if the connection failed.
        f.) Now in the Menu
           Start->ApplicationConfiguration->Customer
           Create your own configuration and assign ur jco
           configuration to it ("jco_myconfig" in my case)
        g.) Follow the same procedure for shopadmin,
            webcatadmin .
        h.) You can follow the above procedure for b2b but
            with diffrent username and password (In my case
            "WEBCONNECT1" )
           RESTART THE J2EE ENGINE...
        i.) open the url :
           http://localhost:50000/useradmin/useradmin/init.do
           provide the login Username : WEBADMIN
           Password : <whatever u have provided>
        j.) Create a user using this web application and
            assign the roles according to it .(Remember now
            you are creating a B2B User,so assign the roles
            as needed).
        k.) Save that user and open url :
            http://localhost:50000/b2b_client/b2b/init.do
        l.) Thats all ...
            You can now run your b2b scenario application
            online and can create online Sales Order and much more
    I hope you will find this tutorial helpfull...
    For any further queries mail me at
    [email protected]
    Cheers !!
    Thanks & Regards
    Sandeep

  • What are the GAP analysis? could you pls... explain with examples?

    hi everybody.....
    may i know what are the GAP analysis with examples?
    thanks in advance...
    and hope u will get it me that.

    Dear arunteja vasan ,
    GAP Analysis
    A through gap analysis will identify the gaps between how the business operates ad its needs against what the package can can't do.   For each gap there will be one of three outcomes which must be recorded and actioned, GAP must be closed and customised software can be developed close the gap, GAP must be closed but software cannot be written therefore a workaround is required, GAP does not need to be closed.
    In simple terms: Gap means small cracks. In SAP world.  In information technology, gap analysis is the study of the differences between two different information systems or applications( ex; existing system or legacy system with Client and new is SAP), often for the purpose of determining how to get from one state to a new state. A gap is sometimes spoken of as "the space between where we are and where we want to be." Gap analysis is undertaken as a means of bridging that space.
    Actual gap analysis is time consuming and it plays vital role in blue print stage.
    Cut Over Plans
    Detailed plans need to be developed for cutting over from the old system(s) to the new.   Parallel runs of what will happen over the conversion period using test data, convert and watch for a period after wards to ensure nothing unexpected happens.
    Train Users
    Well trained users will support and defend the system on site.  Unsupportive users will continually undermine the system and eventually it will be replaced.   Therefore the more effort you put into helping the users master the system early the better.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • Java Book Recommendation?

    Hi,
    I work a lot with scientific computation: reading in data, working with mathematical models, etc.
    However, I can't find a Java book that tackles those aspects in depth.
    Does anyone know of a good book on this topic?
    Regards,
    -mike

    mmeclimate wrote:
    I am sorry you feel that way about my questions! For example, in scientific computing, we work a lot with differential equations, Fourier transforms and so on. I can of course, write a program that will do those computations from scratch - which would take a lot of time! Or, what if there was a Java package that do these calculations? By having a book which focuses on these issues, one can save a lot of time! So, I believe you may have misunderstood my questions.
    That's a different question.
    Of course there exist libraries to aid in scientific and engineering computing.
    Can't give you names as I'm not (sadly) into that field any more, but I do know they exist.
    There are a few books that deal with Java and Scientific Computing that I found. These books prove that the questions that I posed here are relevant, and not a way of "give me the source" that you mentioned. Most people who replied to my questions were very polite as I have been - politeness is definitely an attitude that is much appreciated here!
    Most such questions are from schoolkids who don't want to put in their own effort but just want to copy and paste sourcecode and turn it in as their own for their homework assignments.
    That's how yours was understood to be as well.
    Here is a list of the books I found:
    - A Numerical Library in Java for Scientists and Engineers by Hang T. Lau
    - Java for Scientists and Engineers (2nd Edition) by Stephen J. Chapman
    - Essential Java for Scientists and Engineers by Brian Hahn
    - Java Programming for Engineers by Julio Sanchez and Maria P. Canton
    - Java Gently for Engineers and Scientists by Judith Bishop and Nigel Bishop
    - Java for Engineers and Scientists by Gary J. Bronson
    This is definitely a great list for people who want to apply Java in Science and Engineering.
    May look at some, especially the first :)

  • Whats a good JAVA book?

    What do you think is a good Java book for someone who has a little expericne with java? I have experience in COBOL and a little touch of C, and Visual Basic? Any suggestions?
    Thanks
    Justin

    I would suggest Java: an Introduction to Computer Science and Programming by Walter Savitch. This book assumes that the reader has no programming experience and it's aimed at students. I realize that you do have experience with COBOL, but I would recommend this one over the Core Java series to start out. Core Java volumes 1 and 2 are not good as an introduction for someone coming from a non-object oriented language. They would be a lot better for someone migrating from C++. They frequently refer to C++ and VB in their examples. They are excellent books, but better as a reference than an initial learning source.
    Ethan

  • Effective Java Book Club

    Me and a couple of colleagues are going to work through the new edition of the Java classic "Effective Java".
    We are going at a moderate pace of one chapter each week.
    I'd like to invite anybody interested in this to join us for discussion of the book's items.
    To keep discussions separate and dedicated to the book, I have create a forum at [http://n2.nabble.com/Effective-Java-f34745.html|Nabble]
    We will start discussing the first chapter on Mon, July, 21th (so that anybody has a chance to grab a copy and start reading).
    This effort is not officially associated with the book, the author (Joshua Bloch), the publisher (Addison Wesley) or Sun Microsystems in any way.
    "Effective Java" discusses intermediate to advanced topics and is the one Java-book I recommend to any serious Java developer who has mastered the basics.
    See [http://java.sun.com/docs/books/effective/|Effective Java Home Page]

    Thanks Philip.
    Please note that there is absolutely no commercial interest at all plus the topic really is "Java Programming".
    The book even is marketed by Sun itself and one of the two links is going to the book's page at sun.com.
    The other is to an ad-free forum at a community site for a very specialized topic that does not fit into the forums here.
    If there's anything that may benefit from this, it is sales of the book - though I doubt that that's necessary at all.

Maybe you are looking for