a hint.  look at what calls the methods.  Is it an instantiated
object, or is it a class name?

Also, check out the API reference:  http://java.sun.com/javase/6/docs/api/


On Aug 18, 7:34 am, "David Seto" <[email protected]> wrote:
> Identifying static and non-static method I still can't distinguish the two?
>
> Lab exercise trying to identify the items in bold which one is static and
> which one is non-static.
>
> Could someone explain the difference using those examples listed below?
>
> // endsWith()method
>
> String str = "Hello";
>
> System.out.println( str.endsWith("slo" ) );
>
> //forDigit()method
>
> System.out.println( Character.forDigit(13, 16) );
>
> // floor()method
>
> System.out.println( Math.floor(3, 14) );
>
> //isDigit()method
>
> System.out.println( "0=" + Character.isDigit('0') );
>
> System.out.println( "A=" + Character.isDigit('A') );
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to