Question: zyBooks My library > CSE 1 1 0 : Principles of Programming with Java [ Online ] home > 8 . 2 5 : Smallest

zyBooks My library > CSE 110: Principles of Programming with Java [Online] home >8.25: Smallest of 2(Individual Assignment)
zyBooks catalog
Help/FAQ
Charles Lotshaw
Write (define) a public static method named getSmallest, that takes two arguments (all arguments will be ints). When this method is called, it should return (as an int) the smallest of the two arguments passed to it.
Examples:
getSmallest (0,0) will return 0
getSmallest ,) will return 1
getSmallest (13,100) will return 13
Notes:
You may wish to write some additional code, in the main method, to test your method.
Copyright 2021 Arizona State University - THIS CONTENT IS PROTECTED AND MAY NOT BE SHARED, UPLOADED, SOLD, OR DISTRIBUTED.
Need Help?
Additional help resources are available by clicking on the words "Need Help?" at the bottom of this page, and search for help or ask a question!
543764.3896932.9329y7
LAB ACTIVITY 8.25.1: Smallest of 2(Individual Assignment)
0100
Main.java
Load default template...
1 public class Main .
public static void main(String[] args){
// you may wish to write some code in this main method
}
I/ to test your method.
 zyBooks My library > CSE 110: Principles of Programming with Java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!