What's new

Help JAVA PROGRAMME

PHC - PENNYWISE

Eternal Poster
Established
Joined
Sep 14, 2018
Posts
1,551
Reaction
551
Points
473
Age
24
patulong ako sa mga magagaling mag coding dito guys kung paano to.


create a class Smallest that will find the smallest value from 3 integers. Include a printSmallest() method that will print the smallest integer.
In a separate class, create the main method that will accepts 3 user inputs. Create an object of the Smallest class using the default constructor and display the final output.
 
nakalimutan ko na to pero i will try
Capture.PNG
 

Attachments

Last edited:
FreeAllYouCan-OFFICIAL

Create a Puppy class and declare 1 private variable puppyAge. Create a constructor of that class that has one parameter for the puppy name. Provide getter and setter for the puppyAge variable. In a separate class in your main method, create an object through the constructor created of your Puppy class, assign age a value and print both puppy’s name and age. (Upload the screenshot of your 2 classes and your codes' output) *
 

Similar threads

Back
Top