José Rizal: Pagkakaiba sa mga binago

Content deleted Content added
No edit summary
Igna (usapan | ambag)
m Inalis ang binago ni 121.96.67.3, ibinalik sa huling bersyon ni 121.54.11.206
Linya 73:
 
Hindi kalayuan sa lugar na kanyang kinabagsakan, may isang malaking monumento ngayon, gawa ni Richard Kissling, isang [[eskultura|eskultor]] escoces na siya ring lumikha ng estatwa ni [[Wilhelm Tell]]. May nakasulat dito- "''Nais kong ipakita sa mga nagkakait ng karapatan sa pag-ibig sa tinubuang lupa, na kapag tayo'y marunong mag-alay ng sariling buhay alinsunod sa ating tungkulin at paniniwala, ang kamataya'y di mahalaga, kung papanaw dahil sa ating mga minamahal - ang ating bayan at iba pang mga mahal sa buhay.''"
 
 
-----
/* Problem:
A) Create an IceCreamConeException class whose constructor receives
a String that consists of an ice cream cone's flavor and an integer
representing the number of scoops in the IceCreamCone. Pass this String
to the IceCreamConeException's parent so it can be used in a getMessage()
call. Save the class as IceCreamConeException.java. Create an IceCreamCone
class with two fields - flavor and scoops. The IceCreamCone constructor
calls two data-entry methods - setFlavor() and setScoops(). The setScoops()
method throws an IceCreamConeException when the scoop quantity exceeds three.
Save the class as IceCreamCone.java. Write an application that establishes
several IceCreamCone objects and handles the Exceptions. Save the file as
ThrowIceCream.java.
B) Create an IceCreamCone2 class in which you modify the IceCreamCone
setFlavor() method to ensure that the user enters a valid flavor. Allow
at least four flavors of your choice. If the user's entry does not
match a valid flavor, throw an IceCreamConeException. Write an application
that establishes several IceCreamCone objects and demonstrates the
handling of new Exception. Save the new class file as IceCreamCone2.java and
save the new application file as ThrowIceCream2.java.
*/
public class IceCreamConeException
{
String flavor;
int scoops;
}
------
 
== Ugnay panlabas ==