Give a java method and tell me what it does and provide an object or two that us
ID: 3861035 • Letter: G
Question
Give a java method and tell me what it does and provide an object or two that uses that method . No need to write a code just an simple exampleFor example : one method can be Math.sqrt(x) which is a function the returns the square root of a number: Math.sqrt(9); answ:3
Another example can be nextDouble...etc
Give another example of a java method and what it does and provide an object or two that uses that method ,please keep it simple like the examples I ve given and no need to write a whole code Give a java method and tell me what it does and provide an object or two that uses that method . No need to write a code just an simple example
For example : one method can be Math.sqrt(x) which is a function the returns the square root of a number: Math.sqrt(9); answ:3
Another example can be nextDouble...etc
Give another example of a java method and what it does and provide an object or two that uses that method ,please keep it simple like the examples I ve given and no need to write a whole code
For example : one method can be Math.sqrt(x) which is a function the returns the square root of a number: Math.sqrt(9); answ:3
Another example can be nextDouble...etc
Give another example of a java method and what it does and provide an object or two that uses that method ,please keep it simple like the examples I ve given and no need to write a whole code
Explanation / Answer
so str.length() returns 9
__________________
2)
String str="difficult";
String str1=str.toUpperCase();
Here toUpperCase() method will convert the string into upper case letters.
so str.toUpperCase(); method returns "DIFFICULT"
________________Thank You
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.