User Profile

Collapse

Profile Sidebar

Collapse
rainman33
rainman33
Last Activity: Nov 7 '07, 11:17 PM
Joined: Oct 15 '07
Location: Anchorage, AK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rainman33
    started a topic % character in switch statement
    in Java

    % character in switch statement

    I've looked online and in my textbook, but can't find any explanations for what "wildcards" do in controlling expression parentheses. I have the following code:

    Code:
    1 	switch ( value % 2 )
    2 	{
    3 		case 0:
    4 			outputJTextField.setText( "Even Integer" );
    5
    6 		case 1:
    7 			outputJTextField.setText( "Odd Integer" );
    8 			break;
    9
    ...
    See more | Go to post

  • rainman33
    replied to Ghost in the code
    in Java
    I'm sorry. I guess it does not compile; it gives me that error. But it still runs the weird output. Could this be the reason? You can see on line 104 that the nameJTextField is set to "Sue Purple", and yet this text does not appear anywhere in the output. Instead, the text "Bob Jones" appears. Also, there is no code which sets up a withdrawelJLabe l, yet this label appears in the output. I guess the first thing to do is...
    See more | Go to post

    Leave a comment:


  • rainman33
    started a topic Ghost in the code
    in Java

    Ghost in the code

    Here's a weird one. I compile and run this code, and get Bob Jones as the account holder, and a Withdrawel <sic> JTextField where there should not be one. Anybody help me on this one?



    Code:
    // Exercise 4.16: AccountInformation.java
    // This application inputs and outputs account information.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import
    ...
    See more | Go to post
    Last edited by rainman33; Oct 18 '07, 04:42 AM. Reason: Email notification

  • rainman33
    replied to can anyone help me about coadunation?
    I think that someone likes the word coadunation.
    See more | Go to post

    Leave a comment:


  • cannot find symbol method parseint(java.lang.String)

    I am getting this error message in the program I'm working on (line 150), and am wondering what it means? This is an exercise for a college class; just want to declare that; this is not my own work.

    Here is the program that I am working with:

    [CODE=java]// This application inputs and outputs account information.
    import java.awt.*;
    import java.awt.event. *;
    import javax.swing.*;
    import...
    See more | Go to post
    Last edited by Ganon11; Oct 15 '07, 01:31 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...