Problem Statement : Video Link : Create a class Phone with below attributes: phoneId - int os - String brand - String price - int Write getters, setters and parameterized constructor in the above mentioned attribute sequence as required. Create class Solution with main method. Implement two static methods - findPriceForGivenBrand and getPhoneIdBasedOnOs in Solution class. findPriceForGivenBrand method: This method will take two input parameters - array of Phone objects and string parameter brand. The method will return the sum of the price attribute from phone objects for the brand passed as parameter. If no phones with the given brand is present in the array of phone objects, then the method should return 0. getPhoneIdBasedOnOs method: This method will take a String parameter os, along with the array of Phone objects. The method will return the phone object, if the input String parameter matches with the os attribute of the phone object and its price attribute ...
Hello everyone , This is a boy , Mintu Burnwal , a engineering student from information technology department. In this website , we will learn about basic knowledge to complete knowledge about the corporate world education and knowledge . So , people from any feild can able to learn from this website . stay tuned , keep learning friends and keep support . thank you !