... http://www.simpopdf.com
LISTING 10.1 Continued
59 : } catch (Exception e) {
60 : System.err.println(“Couldn’t use the system “
61 : + “look and feel: “ + e);
62 : }
63 : }
64 :
65 : public static void main(String[] arguments) ... {
66 : FeedInfo frame = new FeedInfo();
67 : }
68 : }
After you fill in the fields in each dialog box, you will see the application’s main win-
dow, w...
... substring from 26 to 32: buying
The index of the character v: 8
The index of the beginning of the substring “IBM”: 33
The string in upper case: NOBODY EVER WENT BROKE BY BUYING IBM
In line 4, ... v: “
13: + str.indexOf(‘v’));
14: System.out.println(“The index of the beginning of the “
15: + “substring \”IBM\”: “ + str.indexOf(“IBM”));
16: System.out.println(“The string in upper case:...
... Comic(String inTitle, String inIssueNumber, String inCondition,
50 : float inBasePrice) {
51 :
52 : title = inTitle;
53 : issueNumber = inIssueNumber;
54 : condition = inCondition;
55 : basePrice = inBasePrice;
56 : ... (String)s.pop();
String s2 = (String)s.pop();
This code pops the last two strings off the stack, leaving the first four strings. This code
results in the s1 variable...