🔒 Closed JAVA PROGRAMME

Status
Not open for further replies.
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.
 
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) *
 
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 387
    Views
  • 2
    Participants
Last reply from:
FreeAllYouCan-OFFICIAL

Trending Topics

Online now

Members online
1,170
Guests online
1,788
Total visitors
2,958

Forum statistics

Threads
2,293,889
Posts
29,087,294
Members
1,207,992
Latest member
Putingbaka
Back
Top