Re: Brand new to Java student
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Jan 2007 11:53:45 -0800
Andrew Thompson wrote:
On Jan 29, 6:24 am, "Sandy" <s...@xxxxxxxxxxxxxx> wrote:I am taking a course and we are using Java as our language. I haven't
used Java before so I am VERY new.
In that case, it is best to be coding command line
applications, until you become used to the control
and looping structures, methods, attributes and
classes, variable scope and other things.
People approaching GUI devlopment should *not*
be describing themselves as 'VERY new'.
For some reason I cannot figure out how to tell what the 'value' of....
the string is, although I can use the string. Here is my code:
<code>
public void actionPerformed(ActionEvent e)
// compare the object references
if(type == "C" || type == "c")
// compare the string contents
if ( type.equals("C") || type.equals("c") )
....
Andrew T.
or type.equalsIgnoreCase("c")
--
Knute Johnson
email s/nospam/knute/
.
- Follow-Ups:
- Re: Brand new to Java student
- From: HightowerC
- Re: Brand new to Java student
- From: Andrew Thompson
- Re: Brand new to Java student
- References:
- Brand new to Java student
- From: Sandy
- Re: Brand new to Java student
- From: Andrew Thompson
- Brand new to Java student
- Prev by Date: Re: Open Source Java Trading Softwares
- Next by Date: Re: New line in a JTextArea (student learning here)
- Previous by thread: Re: Brand new to Java student
- Next by thread: Re: Brand new to Java student
- Index(es):
Relevant Pages
|