Monday, 23 March 2015

Calculating Rectangle Using User-defined Class in Java

The question is Write a class named Rectangle to represent rectangle objects. The UML diagram for the class is shown below.  Then, write a program to test the class Rectangle. In this program, create three Rectangle objects. The first object has width 4 and height 40 while the second object...
Share:

Identify First Name and Surname (Bin and Binti) in Java

Maybe in Islam name, people has father's name after their name. For man, use "bin" and for woman use "binti". And how to identify name in Java using bin or binti?? boolean found = Arrays.asList(name.split(" ")).contains(keyword); Code above is to identify whether in that name contain words in...
Share: