The Artima Developer Community
Sponsored Link

Weblogs Forum
Thinking in Java 4e Solution Guide Now Available

3 replies on 1 page. Most recent reply: Sep 22, 2007 3:56 PM by Bruce Eckel

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Bruce Eckel

Posts: 875
Nickname: beckel
Registered: Jun, 2003

Thinking in Java 4e Solution Guide Now Available (View in Weblogs)
Posted: Sep 22, 2007 3:56 PM
Reply to this message Reply
Summary
There's a demo including the PDF with all the introductory material and instructions including the *Everything is an Object* and *Operators* chapters and source code.
Advertisement

This way you can test it to make sure it's what you're expecting and that you have no problems installing the code before you buy.

The final version is now ready for sale.


David Zo

Posts: 1
Nickname: ramat123
Registered: Sep, 2007

Re: Need Beta Testers for Thinking in Java 4e Solution Guide Posted: Sep 23, 2007 12:39 AM
Reply to this message Reply
Hi Bruce,

Where can I get a copy and what exactly do you want to test?

David

Roman Dmytrenko

Posts: 2
Nickname: erka
Registered: Sep, 2007

Re: Need Beta Testers for Thinking in Java 4e Solution Guide Posted: Sep 23, 2007 1:57 AM
Reply to this message Reply
Exercise 1
//: object/E01_DefaultInitialization.java
/****************** Exercise 1 *****************
* Create a class containing an int and a char
* that are not initialized. Print their values
* to verify that Java performs default
* initialization.
***********************************************/
package object;

public class E01_DefaultInitialization {
int i;
char c;
public E01_DefaultInitialization() {
System.out.println("i = " + i);
System.out.println("c = [" + c + ']');
}
public static void main(String[] args) {
new E01_DefaultInitialization();
}
} /* Output:
i = 0
c = [ ]
*///:~

---

Output will be:

i = 0
c = [

Roman Dmytrenko

Posts: 2
Nickname: erka
Registered: Sep, 2007

Re: Need Beta Testers for Thinking in Java 4e Solution Guide Posted: Sep 23, 2007 2:02 AM
Reply to this message Reply
Hm..
Output:
i = 0
c = []

But in [] is char \\0, but we don't see it. My previous comment is broken because a post correct output :(

Flat View: This topic has 3 replies on 1 page
Topic: Thinking in Java 4e Solution Guide Now Available Previous Topic   Next Topic Topic: The Web Is Getting Worse

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use