Java Basics 101

New msn group to study Java programming.
http://groups.msn.com/JavaBasics101/_whatsnew.msnw
Using the following textbook;
Java How to Program
Fourth Edition
� 2002
ISBN: 0130341517
by Harvey M. Deitel, Paul J. Deitel
http://www.deitel.com/books/index.html#jHTP4
From Book News, Inc.
New edition of a resource in which the founders of the Deitel & Associates, Inc. corporate training and content-creation organization introduce the fundamentals, and beyond, of object-oriented programming in Java. The book contains hundreds of live-code programs with screen captures.
You can download the Powerpoint Lecture Slides for free at the link below to preview the material that will be covered.
http://www.deitel.com/books/jHTP4/jHTP4_ppt.html
This is not a commercial site. I'm just looking for people who would like to work on programming exercises from the above textbook.

Sure, I've taken four programming courses at the local community college and have found that the basics of the Java language are not being taught. The textbook above was used as optional course material in one of the courses and I found it to be much more informative than any of the other resources. The programming exercises at the end of each chapter are excellent. To really learn the Java language you have to do exercises and write many programs.
I'm just trying to find other beginners to work on these exercises along with me.
I have a 4.0 GPA and don't feel I really know the basics of the Java language.

Similar Messages

  • How do you check what version of the java basic libs

    Dear SDN team,
      I am currently using EP 6.0.2.5 , I have just installed patch 5 and I am wondering if I should patch my JAVA Basic libs.  2 Questions
    1.   How can I tell which version I am using now
    2.   Should I patch these libs and why?
    Thanks
    Jeremy

    Hi,
    In The SDM Tool look for an SDA that was deployed from the SAP Java Libs package and then you will see something like:
    Software Type: JAVA-LIB
    Implementation Version: 6.20.<b>14</b>20031219134547.0000
    This means that you are using SAP Java Libs 14.
    It is recommanded to use the latest Java Libs because fixed and enhancements are provided with these libraries.
    Kind regsrds,
    Aviad

  • Java basic tools

    To start, sorry for posting this here, but this question did not fit on the java tools category.
    I need some guidance on (preferably free/open source tools) for java in order to :
    1. Test java basic code
    2. Test GUI code (can this be done?)
    3. Software quality tools like profilers, etc
    Any help/ideas will be apreciated guys!
    Thank you in advance

    Alexandros wrote:
    To start, sorry for posting this here, but this question did not fit on the java tools category.
    I need some guidance on (preferably free/open source tools) for java in order to :
    1. Test java basic code
    JUnit & TestNG?
    2. Test GUI code (can this be done?)[Test Driven Development: A Practical Guide|http://www.amazon.co.uk/Test-Driven-Development-Practical-Guide/dp/0131016490/ref=sr_1_3?ie=UTF8&s=books&qid=1211543555&sr=8-3] goes over a list of options for this. Alas I can only remember brute force (using java.awt.Robot) and JFCUnit. Neither of them are the one used by the example. The other option is not to and test the Listeners & Swing Models (with the test frameworks above). After all you are really only testing the framework will fire an even when asked, and thats what the frameworks test suite is for.
    3. Software quality tools
    FindBugs
    [Cr�p4J|http://www.cr%61p4j.org/]
    I personally find this one a little to spammy, but if I forced myself to tone them down a little and follow the rules they could help:
    PDM
    CheckStyle
    like profilers, etcNetBeans has a profile built in. It is very pretty. Lots of fancy graphs and lines.
    Edit: De-* Cr�p4, add statement on testing GUIs that will get me flamed.
    Edited by: mlk on 23-May-2008 12:05

  • Java Basic CMYK color scheme Support

    Is java has basic CMYK color scheme suppotr as i look in java.awt.Color class of Java6 and java7. We can only pass RGB in color constructor. I used some libraries but it only supports CMYK convert to RGB not directly choosing color from CMYK. Please suggest if any library available in Java to directly get color from CMYK color scheme.
    Edited by: user9098607 on Aug 11, 2011 2:41 AM

    You'll need to get a ICC profile . After that you can use the http://download.oracle.com/javase/1.4.2/docs/api/java/awt/color/ICC_ColorSpace.html class for your needs . A quick google search would give you the code required.

  • Java basic e-commerce book/article references needed please

    My expertise is in backend systems (EJBs, JDBC, etc.). I can write servlets and JSPs but the basics of doing credit card processing, login screens and such is not my specialty though I know some. I've been searching for resources that put it all together, but not finding them. Can ayone suggest a book that tells:
    How do I set up ANT scripts precisely for a specific environemnt and a specific project (I read the ANT manual and a tutorial form IBM and that didn't do it). Just saying "Here's the build.xml" is insufficient.
    Exact explanation of how to toak toa crdit card processing service from a Java web compoent? Can this be doen only from a web component or can an EJB send sucha request?
    I haven't found references for this Everyone has little pieces but I want a resource that puts it all together. Thanks.
    Ken

    Ant:
    http://www.amazon.com/exec/obidos/tg/detail/-/1584502487/qid=1080079460/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/104-0957028-6959111?v=glance&s=books&n=507846
    As for your other question of "can" this be done (Credit Card Processing from EJB). I would never say anything can not be done. Explain your problem with more detail and I'm sure someone in this forum can lead you in the right direction.
    If reading that book does not help you figure out how to use ANT, then I would suggest taking a course from your local Java experts.

  • I need this javascript translated into java basically. any help?

    basically i need to write a program in java that translates english sentence into pirate talk..yeah yeah i know its not original but here is what i need done but its in javascript and i need it written in java:
      <script LANGUAGE="JavaScript">
        PHRASES = [["hello", "ahoy"], ["hi", "yo-ho-ho"], ["pardon me", "avast"],
                   ["excuse me", "arrr"], ["yes", "aye"],
                   ["my", "me"], ["friend", "me bucko"], ["sir", "matey"],
                   ["madam", "proud beauty"], ["miss", "comely wench"],
                   ["stranger", "scurvy dog"], ["officer", "foul blaggart"],
                   ["where", "whar"], ["is", "be"], ["are", "be"], ["am", "be"],
                   ["the", "th'"], ["you", "ye"], ["your", "yer"],
                   ["tell", "be tellin'"], ["know", "be knowin'"],
                   ["how far", "how many leagues"], ["old", "barnacle-covered"],
                   ["attractive", "comely"], ["happy", "grog-filled"], ["quickly", "smartly"],
                   ["nearby", "broadside"], ["restroom", "head"], ["restaurant", "galley"],
                   ["hotel", "fleabag inn"], ["pub", "Skull & Scuppers"], ["mall", "market"],
                   ["bank", "buried treasure"], ["die", "visit Davey Jones' Locker"],
                   ["died", "visited Davey Jones' Locker"], ["kill", "keel-haul"],
                   ["killed", "keel-hauled"], ["sleep", "take a caulk"],
                   ["stupid", "addled"], ["after", "aft"], ["stop", "belay"],
                   ["nonsense", "bilge"], ["officer", "bosun"], ["ocean", "briny deep"],
                   ["song", "shanty"], ["money", "doubloons"], ["food", "grub"],
                   ["nose", "prow"], ["leave", "weigh anchor"], ["cheat", "hornswaggle"],
                   ["forward", "fore"], ["child", "sprog"], ["children", "sprogs"],
                   ["sailor", "swab"], ["lean", "careen"], ["find", "come across"],
                   ["mother", "dear ol' mum, bless her black soul"],
                   ["drink", "barrel o' rum"], ["of", "o'"]
        function Capitalize(str)
        // Returns: a copy of str with the first letter capitalized
            return str.charAt(0).toUpperCase() + str.substring(1);
        function Translate(text)
        // Returns: a copy of text with English phrases replaced by piratey equivalemts
            for (var i = 0; i < PHRASES.length; i++) {
                var toReplace = new RegExp("\\b"+PHRASES[0]+"\\b", "i");
    var index = text.search(toReplace);
    while (index != -1) {
    if (text.charAt(index) >= "A" && text.charAt(index) <= "Z") {
    text = text.replace(toReplace, Capitalize(PHRASES[i][1]));
    else {
    text = text.replace(toReplace, PHRASES[i][1]);
    index = text.search(toReplace);
    return text;
    </script>
    does anyone have any input on how i should go about this? im decent in java but nothing special. thanks

    how do you get the word from the map?
    basically if i understand overall goal: im going to
    loop through the text given to me and check to see if
    any of the words match my hashmap...if it does then i
    replace the word with my word in hashmap and output
    the new result. correct
    >
    if thats correct, well then atleast i understand it.
    i think i could come up with loop to search but i
    have no idea how to compare each word with my map and
    then replace if necessary
    String replacementWord = map.get(word);
    if (replacementWord != null) {
       // Word was found and should be replaced with replacementWord
    }Kaj

  • Java basic icons

    Hi,
    Just wondered how to utilise the icons built-in in java? such as open files or save files.
    thankx heaps

    hello,
    dont know if i understood your question, but hereare the jsdk icons:
    http://developer.java.sun.com/developer/techDocs/hi/repository/
    regards,
    Tim

  • How does java basically work?

    I know that java makes use of many classes which have inherent methods that do our work. But I want to know how those methods work. where are the files for its running? Like in println, how does it output to the console?
    please explain.
    And also tell me how java was built...
    Thanks in advance.
    Megamatrix.

    If you want to see the source code of the standard API classes it's very easy - during the installation of the jdk you can choose to install it. In that case there will be a large file called src.jar in the JDK installation directory. You can extract the sources from it with eg. winzip or the "jar" command line tool.
    And if you are interested in the source of the JDK itself, it can be downloaded too... http://www.sun.com/software/java2/index.html

  • What is the definition of a Java Basic Block?

    The ClassFile specification reads "The intent is that a stack frame map must appear at the beginning of
    each basic block in a method." but it never goes about defining what a "basic block" is.
    http://en.wikipedia.org/wiki/Basic_block indicates that basic blocks may not contain conditional branches.
    http://asm.objectweb.org/current/doc/javadoc/user/org/objectweb/asm/MethodVisitor.html#visitFrame(int,%20int,%20java.lang.Object[],%20int,%20java.lang.Object[]) seems to indicate otherwise.
    So which is it? Is there some official document on this topic?
    Thank you,
    Gili

    tschodt wrote:
    cowwoc wrote:
    The ClassFile specification reads "The intent is that a stack frame map must appear at the beginning of
    each basic block in a method." What is your source? It might be easier to answer your question if we can see that statement in context.1) Go to http://jcp.org/aboutJava/communityprocess/final/jsr202/index.html
    2) Download the file
    3) Open ClassFile-Java6.pdf
    4) Search for the aforementioned text
    I wish Sun made this specification available more easily but it's the only place I could find it.

  • Java basic

    in java the source code is compiled and converted in to bytecodes (intermediate code). whether we can able to predict how the bytecodes will be...

    SoulTech2012 wrote:
    tsith wrote:
    SoulTech2012 wrote:
    tsith wrote:
    SoulTech2012 wrote:
    flounder wrote:
    I was reading some stories yesterday about people without a clue using computers. One woman would always save her files 5 times. Just in case the first 4 times didn't work.Wow. And I thought people that double-clicked on hyperlinks were m0rons.I might be a moron, but I will often hit "Control-S" four or five times. Makes me feel better. The frequency seems be inversely proportional to how well I understand the source.
    EDIT: I suppose [this |http://arstechnica.com/news.ars/post/20080923-study-confirms-users-are-idiots.html] might shed some light...
    Edited by: tsith on Sep 24, 2008 2:18 PMNo, this study is no good. The reason users click the OKAY button is because they are sick of the meriad of windows popups and click okay to get it out of their face. Not that it's the point, or that it matters much, but out of curiosity, how does this make the study "no good"?Because it draws an erroneous conclusion. The results don't imply that users are idiots by any stretch. Though this was the headline, this wasn't the conclusion drawn by the study.
    It only implies they didn't read the message, that is if it implies anything at all.The implication is that no amount of education is going to solve this problem, since users don't read the messages anyway.

  • Java basic doubt

    In java String is treated as object but when we pass the String value as a parameter to a method and reassigned the value of the object inside the method Still the initial object is not getting changed why ?
    public class A
         public void m(String a)
              a="ddd";
         public static void main (String a[])
              String a1 ="Sun";
              new A().m(a1);
              System.out.println(a1);
    out put : Sun
    Thanks,
    Suneesh

    Yes I got it only property changes in the object is
    getting reflected in the initial object's state .In
    this case the object itself assigned to another
    object . Am I right ??All parameters to methods are passed "by value." In other words, values of parameter variables in a method are copies of the values the invoker specified as arguments. If you pass a double to a method, its parameter is a copy of whatever value was being passed as an argument, and the method can change its parameter's value without affecting values in the code that invoked the method. For example:
    class PassByValue {
        public static void main(String[] args) {
            double one = 1.0;
            System.out.println("before: one = " + one);
            halveIt(one);
            System.out.println("after: one = " + one);
        public static void halveIt(double arg) {
            arg /= 2.0;     // divide arg by two
            System.out.println("halved: arg = " + arg);
    }The following output illustrates that the value of arg inside halveIt is divided by two without affecting the value of the variable one in main:before: one = 1.0
    halved: arg = 0.5
    after: one = 1.0You should note that when the parameter is an object reference, the object reference -- not the object itself -- is what is passed "by value." Thus, you can change which object a parameter refers to inside the method without affecting the reference that was passed. But if you change any fields of the object or invoke methods that change the object's state, the object is changed for every part of the program that holds a reference to it. Here is an example to show the distinction:
    class PassRef {
        public static void main(String[] args) {
            Body sirius = new Body("Sirius", null);
            System.out.println("before: " + sirius);
            commonName(sirius);
            System.out.println("after:  " + sirius);
        public static void commonName(Body bodyRef) {
            bodyRef.name = "Dog Star";
            bodyRef = null;
    }This program produces the following output: before: 0 (Sirius)
    after:  0 (Dog Star)Notice that the contents of the object have been modified with a name change, while the variable sirius still refers to the Body object even though the method commonName changed the value of its bodyRef parameter variable to null. This requires some explanation.
    The following diagram shows the state of the variables just after main invokes commonName:
    main()            |              |
        sirius------->| idNum: 0     |
                      | name --------+------>"Sirius"       
    commonName()----->| orbits: null  |
        bodyRef       |______________|At this point, the two variables sirius (in main) and bodyRef (in commonName) both refer to the same underlying object. When commonName changes the field bodyRef.name, the name is changed in the underlying object that the two variables share. When commonName changes the value of bodyRef to null, only the value of the bodyRef variable is changed; the value of sirius remains unchanged because the parameter bodyRef is a pass-by-value copy of sirius. Inside the method commonName, all you are changing is the value in the parameter variable bodyRef, just as all you changed in halveIt was the value in the parameter variable arg. If changing bodyRef affected the value of sirius in main, the "after" line would say "null". However, the variable bodyRef in commonName and the variable sirius in main both refer to the same underlying object, so the change made inside commonName is visible through the reference sirius.
    Some people will say incorrectly that objects are passed "by reference." In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory. If the Java programming language actually had pass-by-reference parameters, there would be a way to declare halveIt so that the preceding code would modify the value of one, or so that commonName could change the variable sirius to null. This is not possible. The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode -- pass by value -- and that helps keep things simple.
    Quoted directly from:
    Arnold, K., Gosling J., Holmes D. (2000). The Java� Programming Language Third Edition. Boston: Addison-Wesley.
    I've said that java handles arrays and objects "by reference." Don't confuse this with the phrase "pass by reference." "Pass by reference" is a term used to describe the method-calling conventions of some programming languages. In a pass-by-reference language, values -- even primitive values -- are not passed directly to methods. Instead, methods are always passed references to values. Thus, if the method modifies its parameters, those modifications are visible when the method returns, even for primitive types.
    Java does not do this; it is a "pass by value" language. However, when a reference type is involved, the value that is passed is a reference. But this is not the same as pass-by-reference. If Java were a pass-by-reference language, when a reference type was passed to a method, it would be passed as a reference to the reference.
    Flanagan, D. (1999). Java In A Nutshell. p. 74. Sebastopol, CA: O'Reilly & Associates, Inc.

  • JAVA BASICS

    I can' t find a complete list of java library classes.... Can anyone help me out?
    Moreover I need a delay method!
    Please answer. It's urgent...

    If you are using SDK 1.3 you can view the Javadocs from this page:
    http://java.sun.com/j2se/1.3/docs.html
    Or if you are using some other version of the SDK, then navigate from here:
    http://java.sun.com/j2se/
    I strongly recommend you download them so that you can view them locally (much faster and more convenient). I find them essential for Java programming.

  • Doubts in java basics.

    class A {
         public void methodTest() {
              System.out.println("Inside class A");
    class B extends A {
         public void methodTest() {
              System.out.println("Inside class B");
    class C extends B {
         public void methodTest() {
              System.out.println("Inside class C");
         public static void main(String arg[]) {
              A aObj = new C();
              aObj.methodTest();
    }The above program prints Inside class C and i understood why it is so.
    class A {
         public void methodTest(A a) {
              System.out.println("Inside class A");
    class B extends A {
         public void methodTest(B b) {
              System.out.println("Inside class B");
    class C extends B {
         public void methodTest(C c) {
              System.out.println("Inside class C");
         public static void main(String arg[]) {
              A aObj = new C();
              aObj.methodTest(aObj);
    }Why the above code is printing Inside class A. I am not understading why is it is not printing Inside class C.
    Thanks for your time.

    The above program prints Inside class C and iunderstood why it is
    so.Why do you think the first prints this?
    A aObj = new C();From the above line i understood that, I am declaring an Obj which is of type A and
    then assigning it a reference of class C. So when we say aObj.methodTest(); its calling class C's method.
    If i am wrong please let me know, i am still new in java.
    Why the above code is printing Inside class A.The methodTest() methods have different signatures,
    and the
    compiler must decide which one to use. Since
    you declare aObj
    as A, it uses public void methodTest(A a).

  • JAVA BASIC QUESTION

    The following piece of code compiles correctly:
    class abc
    double a;
    System.out.println("hello");
    BUT THE SAME FOLLOWING CODE GIVES COMPILATION ERROR:
    class abc
    double a;
    System.out.println("Hello");
    ---------------------------------------------

    Apart from the declaration of instance variables, all other lines of code have to be contained within a method, constructor or a static block. Your code makes use of a static block.
    public class Test {
        System.out.println("This is a static block");
      public static void main(String[] args) {
        new Test();
    }

  • Need to talk through some basic Java principles

    I know this is asking a lot, but I need to talk to someone about Java basics. I have an interview coming up. I am studying, but really need to talk through some things with someone who is familiar with Java programming. My email address is [email protected] If someone could send me a telephone number and perhaps spend 30 minutes on the phone, I would be very greatful. Thanks!

    I don't know if there are any forums where they help you fake your way through interviews.

Maybe you are looking for

  • ColdFusion 11: custom serialisers. More questions than answers

    G'day: I am reposting this from my blog ("ColdFusion 11: custom serialisers. More questions than answers") at the suggestion of Adobe support: @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile querie

  • Help me in my data flow ... new to Bi 7.0

    Dear friends, Iam new to data flow in Bi7.o. Iam loading  data into infocube from flat files which has 7 records. i loaded the data into infocube with 7 records .. then i added 2 records to my flat file when i load it .. iam getting 9 records in my P

  • Wrong Solution Manager Tools release

    Hi I downloaded and installed Solution Manager 7.1. After the base install, ST display version 710 while the rest of the components are 702. Also, I did not download ST 710. When I attempt to install SPS4, I get the error: OCS package SAPKITL702 does

  • Why is the Keyer in FCP X different from the Keyer in Motion 5?

    I'm dissapointed that the advanced features for the Keyer in Motion 5 aren't available in FCPX, ie Spill supression, Light wrap etc. It seems that they should be the same in both programs. This wouldn't be a problem if you could round trip more easil

  • Safari crashing when wake from hibernate

    I started having a problem about 4 months ago where safari (although occasionally other applications like evernote) will crash when waking the computer from deep sleep/hibernate. This does not happen when waking from regular sleep. This happens ALMOS