Skip to main content

Posts

Showing posts with the label ycs digital

TCS IPA previous year coding quistion ( 35 marks ) --- ( in JAVA )

        Problem Statement :-   Video Link :  click here Create a class Footwear which consists of the below attributes.   footwearId=int   footwearName=String   footwearType=String   price =int the above attributes should be private. write getter and setter and parametrised constructor as required. create the class footwearProgram with the main method. implement the 1 static methods.getCountByType in the Solution class. getCountByType method:    this method will take two input parameters. array of the Footwear objects and string parameter footwear type. this method will return the count of the footwears from array of the footwear objects for the given type of footwear. if no footwear with the given footwear type is found in the array of footwear abjects,then the method should return 0. for getCountByType method- the main method should print the count of the footwears ,if the returned value is greater than zero. or it shoul...