🔒 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
  • 389
    Views
  • 2
    Participants
Last reply from:
FreeAllYouCan-OFFICIAL

Trending Topics

Online now

Members online
1,043
Guests online
3,230
Total visitors
4,273

Forum statistics

Threads
2,307,193
Posts
29,177,266
Members
1,193,292
Latest member
Bahaa
Back
Top