robot123 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of robot123.php
- <?php
- public static String findYoungestCustomerName(Customer[] a, char c) {
- String Name =" ";
- double temp = 100.0;
- for (int i=0; i<4; i++)
- {
- if((a[i].getGender()==c)&&(a[i].getAge()<temp))
- {
- temp = a[i].getAge();
- Name = a[i].getName();
- }
- }
- return Name;
- }
- }
File Description
- robot123
- PHP Code
- 26 Aug-2019
- 302 Bytes
You can Share it:
Latest PHP Pastes