I'm trying to clearly delineate actionListener and action.
Could someone please concisely compare the two.
Also, under which conditions should you use one over the other.
phpete48@gmail.com writes:
I'm trying to clearly delineate actionListener and action.
Could someone please concisely compare the two.
These are two identifiers. Both Camel Case. »actionListener«
has 14 characters and consists of two English words. »action«
has 6 characters and consists of one English word.
The following program shows how they can be used in a program:
public class Main
{ public static void main(String args[]) throws Exception
{ final int actionListener = 8;
final int action = 4;
System.out.println( actionListener + action ); }}
12
Also, under which conditions should you use one over the other.
Use the identifier »actionListener« to name something that
is listening to/for an action. (Usually this is not an »int«
as in the above program. This program was just an example.)
Use the identifier »action« to name something that is an
action itself. Something that does not just /listen/ to an
action, but /is/ an action!
On 2/25/2016 18:23, Stefan Ram wrote:
phpete48@gmail.com writes:Bored tonight are we Stefan?
I'm trying to clearly delineate actionListener and action. Could
someone please concisely compare the two.
These are two identifiers. Both Camel Case. »actionListener« has 14
characters and consists of two English words. »action«
has 6 characters and consists of one English word.
The following program shows how they can be used in a program:
public class Main { public static void main(String args[]) throws
Exception
{ final int actionListener = 8;
final int action = 4; System.out.println( actionListener +
action ); }}
12
Also, under which conditions should you use one over the other.
Use the identifier »actionListener« to name something that is
listening to/for an action. (Usually this is not an »int« as in the
above program. This program was just an example.)
Use the identifier »action« to name something that is an action
itself. Something that does not just /listen/ to an action, but /is/
an action!
Hello all,
I'm trying to clearly delineate actionListener and action. Could
someone please concisely compare the two. Also, under which
conditions should you use one over the other.
I have looked this up on internet but none of the answers provided
enough detail.
Thank you, Pete.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 62:55:46 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,274,659 |