John Carter Java Textbook Answer Key

John Carter
Barsoom character
John Carter and Dejah Thoris from the cover of the first edition of A Princess of Mars by Edgar Rice Burroughs, McClurg, 1917
First appearanceA Princess of Mars
Created byEdgar Rice Burroughs
Portrayed byAntonio Sabàto Jr.
(Princess of Mars)
Taylor Kitsch
(John Carter)
In-universe information
AliasJohn Carter of Mars
GenderMale
OccupationAdventurer
Soldier
NationalityAmerican

Nov 25, 2004 Buy the Other Book CPS Solutions to An Introduction to Computer Science Using Java by John Carter at Indigo.ca, Canada's largest bookstore. Free shipping and pickup in store on eligible orders.

John Carter of Mars is a fictionalVirginian—a veteran of the American Civil War—transported to Mars and the initial protagonist of Edgar Rice Burroughs' Barsoom stories. His character is enduring, having appeared in various media since his 1912 debut in a magazine serial. The 2012 feature film John Carter marked the 100th anniversary of the character's first appearance.

  1. Sep 10, 2015 Answer The code above will output `5` as output. When we used `delete` operator for deleting an array element then, the array length is not affected by this. This holds even if you deleted all elements of an array using `delete` operator.
  2. This item: Glencoe Geometry by John A. Carter Hardcover $122.01. Only 1 left in stock - order soon. Ships from and sold by texttextbooks. Geometry-Interactive Student Guide by Paul Nylander Paperback $6.97. Ships from and sold by All American Textbooks. Customers who viewed this item also viewed.
  3. John Carter Java Textbook Answer Key Diagramas Electricos Online Tutu App Free Download For Pc Yandex Browser Portable Puzzle Corel Draw Crack Amiquote 3.31 For Windows Spas-12 Cod4 Cfgfactory In The Early Hours Khurram Murad Pdf Maria Bethania Musica E Perfume Download Scott Pilgrim Vs The World Download Code.

Appearances[edit]

John Carter was the lead character in the first novel by Edgar Rice Burroughs, set on a fictionalized version of Mars known as Barsoom. Written between July and September 28, 1911, the novel was serialized as Under the Moons of Mars in the pulp magazineThe All-Story from February to July 1912. It later appeared as a complete novel only after the success of Burroughs' Tarzan series. For its October 1917 hardcover publication by A.C. McClurg & Company, the novel was retitled A Princess of Mars.

Carter reappeared in subsequent volumes of the series, most prominently in the second (The Gods of Mars, 1918), the third (The Warlord of Mars, 1919), the eighth (Swords of Mars, 1936), the tenth (Llana of Gathol, 1948), and the eleventh and final installment (John Carter of Mars, published posthumously in 1964). John Carter is also a major secondary character in the fourth volume (Thuvia, Maid of Mars, 1920), and the ninth (Synthetic Men of Mars, 1940). In Spring 2020, Edgar Rice Burroughs, Inc. will release John Carter Of Mars: Gods of The Forgotten.[1] It will be the 12th book in the Barsoom series and will be officially seen as canon

Description[edit]

Carter stands 6 feet 2 inches (1.88 m) and has close-cropped black hair and steel-grey eyes. Burroughs describes him as immortal. In the opening pages of A Princess of Mars, it is revealed that Carter can remember no childhood, having always been a man of about thirty years old. Many generations have known him as 'Uncle Jack,' but he always lived to see them grow old and die, while he remained young.

His character and courtesy exemplify the ideals of the antebellumSouth. A Virginian, he served as a captain in the American Civil War on the side of the Confederacy. After the war, Carter and his companion Powell, who was also a captain in the Civil War, became gold prospectors. Carter and Powell struck it rich by finding gold in Arizona. While hiding from Apaches in a cave, he appears to die; leaving his inanimate body behind, he is mysteriously transported by a form of astral projection to the planet Mars, where he finds himself re-embodied in a form identical to his earthly one. Accustomed to the greater gravity of Earth, he finds himself to be much stronger and more agile than the natives of Mars.

Character biography[edit]

On Mars, which its natives call Barsoom, Carter encounters both formidable alien creatures resembling the beasts of ancient myth, and various humanoids. He finds his true calling in life as a warlord who strives to save the planet's inhabitants. He wins the hand of a Martian princess, Dejah Thoris of Helium, but after several years of marriage he sacrifices himself to save Barsoom from the loss of its atmosphere. Awakening again after this second death he finds he has been miraculously transported back to Earth, into his original body. Carter then collects the wealth that resulted from his discovery of a rich vein of goldore right before his original passage to Barsoom. Unable to return to Mars, he spends several more years in a small cottage on the Hudson River in New York, where he once more appears to die on March 4, 1886. In his first appearance, he refers to the fact that he does not actually know how old he is or when or where he was born. He further states that he has been a fighting man for a very long time, by implication far longer than a single human lifetime.

Again, Carter's apparent demise is not a true death; rather, he is restored to Barsoom, where after more adventures he rises to the position of Warlord of Mars, having played an instrumental role in creating alliances among many of the sentient races of Barsoom. He returns to Earth on a number of occasions afterward to relate his adventures to his nephew ('Burroughs'), revealing that he has mastered the process of astral travel between the two worlds. During his adventures on Mars his earthly body reposes in a special tomb that can only be opened from the inside.

John Carter and Dejah Thoris become the parents of a son, Carthoris, and daughter, Tara. Carthoris plays a secondary role in The Gods of Mars and The Warlord of Mars, and is the protagonist of Thuvia, Maid of Mars. Tara is the heroine of The Chessmen of Mars (1922), and the mother of Carter's granddaughter Llana, heroine of Llana of Gathol.

Only one other Earthman, Ulysses Paxton is able to travel to Mars via the method Carter used.

A complete list of characters is given at the end of Thuvia, Maid of Mars.[2]

In other media[edit]

Dell Fast Action book, 1940

Comics[edit]

John Carter has appeared many times in short-lived comic strips and comic books, as well as in various Big Little Books of the 1930s and 1940s.

In 1932, Burroughs tried to convince United Feature Syndicate, the distributors of the Tarzan comic strip, to also make an adaptation of John Carter; however the syndicate rejected the idea.[3] In 1933, King Features Syndicate, wanting a science fiction strip to compete with the popular Buck Rogers, discussed a John Carter adaptation with Burroughs. Burroughs and the illustrator J. Allen St. John, expressed an interest in doing such a strip for King Features. However, Burroughs and King Features were unable to reach an agreement, and the syndicate decided to use an original strip — Flash Gordon by Alex Raymond — instead.[3][4]

In 1941, United Feature agreed to the creation of a John Carter strip, hoping it would become as successful as Buck Rogers and Flash Gordon.[5] The most notable John Carter comic adaptation to appear in Edgar Rice Burroughs' lifetime, John Carter of Mars was written and illustrated by Burroughs' son John Coleman Burroughs. This strip debuted on Sunday, December 7, 1941—the very day of the infamous Pearl Harbor Attack.[5] This strip lasted only one year and four months, ending on April 18, 1943.[6] Coleman Burroughs' strip was reprinted in book form by House of Greystoke in 1970.[5]

Dell Comics released three issues of John Carter of Mars under its Four Color Comics anthology title. The issue numbers are 375, 437, and 488 and were released in 1952-1953. These were reprinted by Gold Key Comics (with different covers) in 1964.

Carter has appeared in various subsequent graphic adaptations of the Martian stories, notably the 'John Carter of Mars' feature that ran in DC Comics' Tarzan and Weird Worlds comics from 1972 to 1973, and in Marvel Comics' John Carter, Warlord of Mars from 1977 to 1979.

He also appeared, along with Tarzan, in a 1994-1995 storyline of the Tarzan Sunday comic strip,[7] and in Tarzan/John Carter: Warlords of Mars, a 1996 four-issue miniseries from Dark Horse Comics.[8][9]

Key

In 2010, Dynamite Entertainment published an ongoing series titled Warlord of Mars, written by Arvid Nelson. In 2011, Warlord of Mars: Dejah Thoris #1 debuted, also written by Nelson.

SelfMadeHero are also adapting A Princess of Mars into a graphic novel, adapted by Ian Edginton with art by INJ Culbard.[10]

Carter's physical appearances in the comics varied greatly from decade to decade. He was a frequent character in sketches and paintings by Frank Frazetta.

Other novels and television programs[edit]

Carter is also found in other novels and stories. He makes two appearances in Alan Moore's The League of Extraordinary Gentlemen. The first is in the story Allan and the Sundered Veil, which appears in the end of volume one. In this story, Moore claims that H. P. Lovecraft's Randolph Carter is a descendant of John Carter. Carter also appears in the beginning of volume two, helping the Barsoomians fight against the Martians from The War of the Worlds. The same scenario also appeared in the Burroughs entry in the War of the Worlds: Global Dispatches anthology. In addition, one of the protagonists of Robert A. Heinlein's The Number of the Beast is Captain Zebediah John Carter, whose lover becomes his wife Dejah Thoris 'Deety' Burroughs Carter. The similarity in names is noted within the novel, since all of the major characters are fans of vintage science fiction. In Saturn's Children, by Charles Stross, Barsoom and Carter City are names of settlements on Mars. In Philip José Farmer's 'World of Tiers' novels the moon circling the World of Tiers is modelled after Barsoom, from Edgar Rice Burroughs' novels, an homage which Farmer openly admits in the third book of the series. In Dan Simmon's Hyperion, when Fedmahn Kassad turned eighteen, he was offered the choice of serving at a Martian polar work camp or enlisting with the John Carter Brigade, a volunteer task force seeking to aid FORCE against the Glennon-Height Rebellion. In Harry Turtledove's Southern Victory series final novel, Settling Accounts: In at the Death, a character named John Carter of the 'Tarkas' estate (a reference to Tars Tarkas, one of the green men of Mars), appears before a U.S. general after having protected African-Americans from the genocide taking place elsewhere.

The 'object compass' in E.E. 'Doc' Smith's Skylark series is very similar to the Barsoomian 'destination compass' mentioned in the Mars series. Moreover, the Jandar of Callisto series by Lin Carter and the Dray Prescot series by Alan Burt Akers owe a great deal to Burroughs' Mars stories. In Stephen King's novella The Long Walk, a sarcastic reference is made by a Long-Walker - when asked his name, the character replies 'My name is John Carter, my home is Barsoom, Mars'. In Allan Howard's short story 'It's a Small Solar System', originally published in Fantastic Universe (September 1957), the first explorers to land on Mars are welcomed by a man with a Southern accent: 'Welcome to Barsoom! My name is John Carter.' But as no one reads for pleasure on Earth anymore, the significance of this encounter is totally lost on the newcomers, and so ends the story.[11]

Carter has also been referenced in television shows. In Zone of the Enders: Dolores, i, the protagonist, James Links, is always called 'John Carter' by the WIRED officer, Baan Dorfloun. James Links is an Earth-born human who fell in love and had children with a Mars-born woman. In Episode 15 of the anime series To Love-Ru, a prince named Carter, from the planet Burroughs, arrives on Earth to conduct a hunt in a hidden alien game preserve in Guyana. In the Babylon 5 episode 'Spider in the Web', John Carter is mentioned as the pilot of the first colony ship to Mars. In 'Secret Origins', the pilot episode of the cartoon TV series Justice League, the first US astronaut on Mars is named J. Allen Carter. Carter sets up Earth for invasion by the Mars-based 'Imperium', which had wiped out the native Martian population, except for sole survivor J'onn J'onzz, aka Martian Manhunter.

In January 2020, Altus Press released Tarzan: Conqueror of Mars by Will Murray, an authorized Tarzan novel in which Tarzan finds himself marooned on Barsoom and seeks John Carter's help to return home.

Influence on later works[edit]

College Textbook Answer Key

John Carter of Mars was a major influence on other science fiction/fantasy tales and characters through the 20th century, including Buck Rogers, Flash Gordon, Superman, Adam Strange, Dune, Warp!, Den, and Star Wars to name just a few.

The movie Avatar was inspired by John Carter of Mars. According to Avatar's creator, James Cameron, 'With Avatar, I thought, Forget all these chick flicks and do a classic guys' adventure movie, something in the Edgar Rice Burroughs mold, like John Carter of Mars – a soldier goes to Mars.'[12]

In the first chapters of Gore Vidal's novel Washington, D.C. (1967), the character Peter Sanford – aged 16 at the outset of the plot – indulges in vivid and detailed fantasies of being John Carter, and adds explicit erotic scenes not appearing in the original Burroughs books.

In The Number Of The Beast, by Robert Heinlein, two of the main characters are inspired by the John Carter series. One is actually a reserve captain from Virginia named Zebadiah John Carter and his (soon to be) bride is named Deejah Thoris (Deety) Burroughs. They use technology to skip to various worlds, and end up meeting Lazarus Long.

Films[edit]

Bob Clampett, the animator, wanted to produce a full-length cartoon of John Carter in the 1930s and talked with Burroughs about it. Several seconds of animation appear in the supplemental material of the home-video version of the Disney film.[13]

John

John Carter was played by Antonio Sabàto Jr. in the 2009 film Princess of Mars, which also starred Traci Lords as Princess Dejah Thoris.

In the 2012 Disney film adaptation of the series, John Carter, Carter is played by Taylor Kitsch,[14] with the role of Dejah Thoris played by Lynn Collins.

Games[edit]

The John Carter, Warlord of Mars role-playing game was published by Heritage Models in 1978. In 2015, British company Modiphius Entertainment acquired a John Carter license, announcing plans to put out a new John Carter role-playing game, miniatures and a board game in 2016.[15]

References[edit]

  1. ^http://edgarriceburroughs.com/erbuniverse//
  2. ^'The Project Gutenberg E-text of Thuvia, Maid of Mars, by Edgar Rice Burroughs'. Retrieved 13 October 2014.
  3. ^ abRobert R. Barrett, 'How John Carter Became Flash Gordon'. Burroughs Bulletin No. 60: (p.19-26).Fall 2004.
  4. ^'Mrs Jensen, ERB's secretary, recalled the author negotiating with King Features Syndicate for a Martian strip, based on the exploits of John Carter, but it never came off. A short time later the Hearst syndicate started 'Flash Gordon', drawn by Alex Raymond...' Robert W. Fenton, Edgar Rice Burroughs and Tarzan : A Biography of the author and his creation. Jefferson, N.C. : McFarland, 2003. ISBN078641393X (p. 125)
  5. ^ abcRon Goulart,The Funnies : 100 years of American comic strips. Holbrook, Mass. : Adams Pub., 1995. ISBN1558505393. (p.159)
  6. ^Holtz, Allan (2012). American Newspaper Comics: An Encyclopedic Reference Guide. Ann Arbor: The University of Michigan Press. pp. 216–217. ISBN9780472117567.
  7. ^Edgar Rice Burroughs' Tarzan from 1994 & 1995, Sunday Pages with John Carter of Mars from ERBzine 2121
  8. ^Tarzan/John Carter: Warlords of Mars at the Grand Comics Database
  9. ^Tarzan/John Carter: Warlords of Mars at the Comic Book DB (archived from the original)
  10. ^A Princess of Mars, Self made Hero
  11. ^Howard, Allan (September 1957). 'It's a Small Solar System'. Fantastic Universe. Leo Margulies. Retrieved 2020-07-20.
  12. ^Goodyear, Dana (2009-08-26). 'Man of Extremes'. The New Yorker. Condé Nast. Retrieved 2014-11-26.
  13. ^Lost Cartoons: The Animated 'John Carter of Mars' was a planned 1930s cartoon movie of John Carter that never happened.Jim Hill Media
  14. ^Kit, Borys (2009-06-12). 'Taylor Kitsch, Lynn Collins blast off to Mars'. The Hollywood Reporter. Retrieved 2014-09-11.
  15. ^

External links[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=John_Carter_of_Mars&oldid=1019403096'

Java by Dissection Second Edition is now available.

Java by Dissection

by Ira Pohl and Charlie McDowell

Addison-Wesley ISBN 0-201-61248-8

Enlisting the best-selling dissection method, this title teaches programming techniques and presents the Java language using a sound and structured method. Working code is dissected with explanations to the student on each newly encountered programming element and idiom found in the code. The presentation assumes no programming background; both CS1 students and experienced programmers unfamiliar with Java will find a carefully structured presentation of the Java language and its key programming concepts.

Features

  • Assumes no previous programming experience
  • Teaches the mainstream language features of Java 2, including AWT and threads, while remaining the appropriate length for a one-semester course on the subject
  • Executable complete programs in every chapter are explained using the classic dissection method, a structured walk-through of the code
  • Simplified Input package allows novice Java programmers to use the language early on without advanced knowledge of the language
  • Common Programming Errors, end-of-chapter review questions, exercises, and summaries, as well as an Instructor's Manual with answers, make this an ideal text from which to learn and teach the material
Key

Ira has also developed a general course outline for an introductory course in programming using this text.

Charlie McDowell has notes with slides for teaching from the Java by Dissection book.

The first three chapters of Java by Dissection are available for free in eMatter form as Chapter 1, Chapter 2, Chapter 3. You can buy this book online through Barnes and Noble.

The Java code examples in the book are available in several forms. The code is arranged in directories corresponding to the chapters of the book. To get to the unpacked version for any system, or to get individual program files, you can use the FTP directory (www.cse.ucsc.edu/~pohl/JBD/). Files are also available in zip form for Windows users and compressed tar form for UNIX users.

More information and the source code for the tio package is also available.

Errata

Caveats: Some standard libraries may have been modified since this book was written and the function prototypes may differ from what is available on your compiler. Check your compiler vendor for the correct prototypes.

Notations: p425 means page 425
+8 means 8 lines from top
-7 means 7 lines from bottom

If you encounter errata in this book not listed here, please contact Ira Pohl via email at pohl@cse.ucsc.edu with your errata. You will be cited in the correction if you are the first to report it.

p4 (June Yoshiko Sison) Just after the table, change 'To execute step1, place the first number, 77, in the box pennies' to'...in the box price.'

(Corrected in eBook) (Correction submitted to AWL)

p 6 (Brian Chavez) line 6 change (0:100):'); to (0 to 100):');

(posted October 2001)

p11 (Charlie McDowell) We refer to www.JavaByDissection.xyz as the website at which you can obtain the Draw applet. There is no such website and the name of the applet should be MiniCalcApplet. The MiniCalcApplet in the book is consistent with version 1.2 of the JDK and it can be found in the FTP directory for the book in chapter 8 at

An additional version, for those of you who have only JDK 1.1.x, is available at http://www.cse.ucsc.edu/~charlie/java/jbd/MiniCalcApplet.html.

(Corrected in eBook) (Correction submitted to AWL)

p34 (Steffen Vissing Andersen) line 2 in the table: 99 ... 112 should be 99 ... 122

(Correction submitted to AW July 2001)

p35 (James Sears) line -10 The output is confusing. It would be better to replace the colon with the word 'to' so that

System.out.println('type price (0:100):');
should be
System.out.println('type price (0 to 100):');

p44 (Charlie McDowell) line -1, the -b +needs to be in front of the quare root expression as part of the numerator.

(Corrected in eBook)

p51 (Charlie McDowell) exercise 15, inreadChar() should be in.readChar()

(Correction submitted to AWL) (Corrected in eBook)

p56 ( Linda Beattie) lines 3-4 Tthe sentence 'Declaration statements start with a type and are followed by a comma separated by a list of variables' should instead read 'Declaration statements start with a type and are followed by one or more variables, separated by commas.'

(Correction submitted to AWL)

p82 - 83 (Vera Ta) Every occurence of println(...) that isn't System.out.println() needs to be changed to be System.out.println(). This occurs in the final else of the if-else example on page 82, in every case of the switch on page 82, and in the default case of the switch on page 83.

(Corrected in eBook) (Correction submitted to AWL)

p87 line 4, (Melissa Chan) 'executed' is misspelled as exeucted in the comment.

(Corrected in eBook) (Correction submitted to AWL)

p89 exercise 6, (Charlie McDowell) it should be a^2 + b^2 = c^2 not multiplication

(Correction submitted to AWL) (Corrected in eBook)

p91 (Charlie McDowell) (for next edition) change exer 22 to say

'Run the computation for 20 terms...' instead of 100. It has converged after 20 and the next 80 just confuse the issue by scrolling the important stuff off of the screen.

(Correction submitted to AWL) (Corrected in eBook)

p 98 (Brian Chavez) line -5 change i < k to i < howManyTimes

(posted October 2001)

p 106 (Brian Chavez) line -18 (in second bulleted item) Change

sum = smallest = biggest = item;

to

smallest = biggest = item;

(posted October 2001)

p108 (Richard Johnson) lines 6-8 are missing the line breaks shown in the output. It should read:

System.out.println('nCount: ' + k
+ 'nMaximum: ' + biggest
+ 'nMinimum: ' + smallest);

(Corrected in eBook) (Correction submitted to AWL)

p135 (Charlie McDowell) exercise 1 remove the word 'following' so that it reads 'Rewrite the class Message from page 96 so that

(Correction submitted to AWL) (Corrected in eBook)

p137 (Charlie McDowell) exercise 17(just formatting) The letters a-g should be instead numbers 1-7 because the text refers to step1.

p152 (Steffen Vissing Andersenl) line 21 change //initial max value to //initial min value.

(Correction submitted to AW July 2001)

p160 (Steffen Vissing Andersenl) line 22 needsto init the index to 2 instead of 0, so that 0 and 1 won't be listed as primes. Change

for ( i = 0; i < 100; i++)

to

sieve[0] = sieve[1] = false;

for ( i = 2; i < 100; i++)

(Correction submitted to AW July 2001)

p165 (Steffen Vissing Andersenl) line -11 needs semicolon at end of int[] ragged = ...};

(Correction submitted to AW July 2001)

p187 (Steffen Vissing Andersen) In math equation swap L and R so it reads

(L i,k . R k, j)

(Correction submitted to AW July 2001)

p186 (Charlie McDowell) (end of exercise 14) change eval() to evalPoly().

Key (Correction submitted to AWL) (Corrected in eBook)

p190 (Charlie McDowell) 1st line second paragraph 'on page 31' should be 'on page 23'

(Correction submitted to AWL) (Corrected in eBook)

p194 (Charlie McDowell) The last paragraph return values are incorrect. The changes are shown in boldface. The paragraph should read:

These calls to method compareTo() will return a number less than 0 if str1 is lexicographically before the parameter. Essentially that means alphabetical order, but it also specifies an ordering for nonalphabetic characters. The calls will return a number greater than 0 if str1 is lexicographically after the parameter, and they will return 0 if the strings are equal.

John Carter Java Textbook Answer Key

The actual value is the difference of the first characters that didn't match. So in s1.compareTo(s2), if they differ at index diff then the return value is s1.charAt(diff) - s2.charAt(diff)

(Corrected in eBook) (Correction submitted to AWL)

p197 (Charlie McDowell) the third line in the table should read: StringBuffer(int capacity) ... not String(int capacitiy)

(Corrected in eBook) (Correction submitted to AWL)

p210 (Charlie McDowell) line -16,

pennies = (int)((diff-dollars) * 100);

should be

pennies =(int)Math.round((diff-dollars) * 100);

(Correction submitted to AWL) (Corrected in eBook)

p219 (Richard Johnson) line 2 comment has MODOULOUS misspelled. It should be MODULUS

(Corrected in eBook) (Correction submitted to AWL)

p220 (Charlie McDowell) (technically correct but ugly) in the class Pips, the line

return new Integer(p).toString();

should be

return String.valueOf(p);

(Correction submitted to AWL) (Corrected in eBook)

p221 (Dr. Richard Johnson) In method toString() change

t = t + 'n' + deck[i];

to

t = t + deck[i] + 'n';

(Correction submitted to AWL)

p221 (Steffen Vissing Andersen) In method shuffle() change

Card t = new Card(deck[i]);

to

Card t = deck[i];

(Correction submitted to AW July 2001)

p222 (Dr. Richard Johnson) In the dissection of method toString() change

t = t + 'n' + deck[i];

to

t = t + deck[i] + 'n';

(Correction submitted to AWL)

p222 (Steffen Vissing Andersen) In method shuffle() change

Card t = new Card(deck[i]);

to

Card t = deck[i];

(Correction submitted to AW July 2001)

p223 (Lei Chen) line 4, argv should be args.

p227 (Charlie McDowell) (minor grammatical error) 'from an nonstatic' should be 'from a nonstatic'

(Correction submitted to AWL) (Corrected in eBook)

p228 (Charlie McDowell) exercise 9'the upper left corner' should be 'the lower left corner'

(Correction submitted to AWL) (Corrected in eBook)

p230 (Dr. Richard Johnson) In the pseudocode for finding the root of a polynomial, change the third line to be

while the absolute value of (a - b) > epsilon

(Correction submitted to AWL)

p235 (Morten Ovi) line 1 subclass should be superclass

class class-name extends subclass-name {

John Carter Java Textbook Answer Key Answers

should be

class class-name extends superclass-name {

p244 (Charlie McDowell) Common Programming Error the class SomeSub extends
SomeSuper so

class SomeSub {

becomes

class SomeSub extends SomeSuper {

(Correction submitted to AWL) (Corrected in eBook)

p261 (Charlie McDowell) In the grey box at the top, change the three occurences of StudentWorker to StudentEmployee.

(Correction submitted to AWL)

p270 (Steffen Vissing Andersenl) Sample AWT Components at top of screen shot should be Sample Swing Components

(Not sent to AW )

p 274 (Rick Johnson) The Class HelloGoodBye can use either Button or JButton.

(Correction submitted to AWL)

Page 275 ( Jonathan Stauduhar) In list item number 4 change ActionEventListener to ActionListener (two occurrences).

(Correction submitted to AWL)

p292 (John Carter) line 18 (x radius, y radius) are missing their hyphens. It should read

(x-radius, y-radius).

(Corrected in eBook) (Correction submitted to AWL)

p317 (Charlie McDowell) (1st noncode line) 'As in Plot2...' should be 'As in Star2...'

(Correction submitted to AWL) (Corrected in eBook)

p319 (Charlie McDowell) The class DrawTriangle is misnamed. It should be called DrawSomeLines. The comment for that class should read:

//DrawSomeLines.java - two ways to draw lines

At one time we used drawPolyline() here to draw a triangle, but we don't now. The code works, the description is just misleading.

(Correction submitted to AWL)

p339 (Craig Abbott) JText Area and JTextField are different from TextArea and TextField in that they do not generate java.awt.TextEvents. There is no simple edit that can explain how to do this witth JTextComponents. This should be addressed in any new edition. For now, the correction would be to delete the two lines inthe table beginning with TextListener in column 1.

(Correction submitted to AWL)

p344 (Charlie McDowell) Exercise 17 Remove the comment

//code to update position and velocity here

(Correction submitted to AWL) (Corrected in eBook)

p356 (Rick Johnson) The first two lines in the body of the round() method are for debugging purposes and should be deleted from the code. They are

(Correction submitted to AWL)

p357 (Rick Johnson) lines 3-4 The form.setMaximumDecimalDigits() should be form.setMaximumFractionDigits()

(Correction submitted to AWL)

p375 (Ira Pohl): line 7 in code (and in later dissection on the same page)

catch(NumberFormatException) {

should be

catch (NumberFormatException e) {

(Correction submitted to AWL) (Corrected in eBook)

p376 (Steffen Vissing Andersen) In first line of code in Common Programming Error box, change

while (confirm = 'N') {

to

while (confirm 'N') {

(Correction submitted to AW July 2001)

p389 (Steffen Vissing Andersen) line -5 change

John Carter Java Textbook Answer Key Page 443

if (v = -1)

to

if (v -1)

(Correction submitted to AW July 2001)

p485 (Charlie McDowell) line -12 if statement has statements out of order. Replace

String needs Rounding = ... }

with

if (exp -1)
return round(value);
else {
String needsRounding = value.substring(0, exp);
return round(needsRounding) + value.substring(exp);
}

(Correction submitted to AWL) (Corrected in eBook)

p474 (Eric Cain) lines 18-19 comment is incorrect. Remove the two lines starting with

* @exception FileNotFound ...

(Corrected in eBook) (Correction submitted to AWL)

p498 (June Yoshiko Sison) In the index entry for applet, ??-301 should be 298-301.

(Correction submitted to AWL)

p507 (Charlie McDowell) There is an error in the index entry for stream, it includes question marks

(Correction submitted to AWL) (Corrected in eBook)

John Carter Java Textbook Answer Key Pg 173


John Carter Java Textbook Answer Key 35 37