๐Ÿ”’ 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.
 
nakalimutan ko na to pero i will try
Capture.webp
 
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
  • 360
    Views
  • 2
    Participants
Last reply from:
FreeAllYouCan-OFFICIAL

Online now

Members online
924
Guests online
3,292
Total visitors
4,216

Forum statistics

Threads
2,276,129
Posts
28,967,781
Members
1,231,127
Latest member
zrhu
Back
Top