Answer:
/*
  Find Largest and Smallest Number in an Array Example
  This Java Example shows how to find largest and smallest number in an  
  array.
*/
public class FindLargestSmallestNumber {
  
 public static void main(String[] args) {
  
 //array of 10 numbers
 int numbers[] = new int[]{32,43,53,54,32,65,63,98,43,23};
  
 //assign first element of an array to largest and smallest
 int smallest = numbers[0];
 int largetst = numbers[0];
  
 for(int i=1; i< numbers.length; i++)
 {
 if(numbers[i] > largetst)
 largetst = numbers[i];
 else if (numbers[i] < smallest)
 smallest = numbers[i];
  
 }
  
 System.out.println("Largest Number is : " + largetst);
 System.out.println("Smallest Number is : " + smallest);
 }
}
  
/*
Output of this program would be
Largest Number is : 98
Smallest Number is : 23
*/
Explanation:
 
        
             
        
        
        
Er..... i do not know the answer to this
        
             
        
        
        
Answer:
// here is code in Java.
// package
import java.util.*;
// class definition
class Main
{ 
    // method that return sum of two sale value
    public static int Add(int euroSales,int asiaSales)
    {
        // return the sum
        return euroSales+asiaSales;
    }
    //main method of the class
 public static void main (String[] args) throws java.lang.Exception
 {
    try{
     // variables
        int euroSales=100;
        int asiaSales=150;
        int eurasiaSales;
         // call the function
        eurasiaSales=Add(euroSales,asiaSales);
         // print the sum
        System.out.println("total sale is:"+eurasiaSales);
    }catch(Exception ex){
        return;}
 }
 }
Explanation:
Declare and initialize two variables "euroSales=100" and "asiaSales=150". Declare another variable eurasiaSales. Call the method Add() with euroSales and asiaSales as parameter. This method will add both the value and return the sum.This sum will be assigned to variable eurasiaSales.Then print the sum.
Output:
total sale is:250