Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
double x;
double y = math.sqrt(x);
this code will remind me that in order to perform complicated functions on primitive data types i must use a static class.
a static class is called a static class( has static methods)because you dont need
an object instance to call(use) them just its name.
since primitve dont have an object automatically attached to them the static classes must be used.
in order to to math functioons with int and double (primitive types) i must use math.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment