Comment on Tutorial - how to use boolean data type in Java By Lakshmi
Comment Added by : harish
Comment Added at : 2012-12-24 06:59:04
Comment on Tutorial : how to use boolean data type in Java By Lakshmi
A phone is considered a good phone if all of the following conditions are satisfied:-
The manufacturer must be one of Nokia, Samsung, Motorola, Sony or HTC.
The model name of the phone must be a single word. For example, "Razr", "Omnia" or "N8" will count, but "C6 01", "EVO 3D" or "Xperia Arc S" won't.
It must have either 'Android' or 'Windows' as its operating system.
If the CPU is of type "ARMv11" then the cpu speed must be atleast 1024 MHz.
If the CPU speed is less then 1024 MHz, then it must have a GPU and "Android" os only.
There should be atleast 30 carriers selling this phone and "Vodafone" must be one of them.
Write a method:
boolean isGoodPhone(String model, String manufacturer, String os, int CPUSpeed, String CPUType, boolean hasGPU, String carriers)
model Name of the phone model.
manufacturer Name of the phone manufacturer.
os Name of the operating system.
CPUSpeed CPU speed in MHz.
CPUType Type of the CPU.
hasGPU Whether or not the phone has Graphics Processing Unit (GPU).
carriers a string array representing list of carriers who sell this phone.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
2. Hi, this blog answers my questions but what is the
View Tutorial By: Edu at 2009-09-20 00:19:27
4. EJB's can be deployed on multiple servers and when
View Tutorial By: Tomek at 2011-09-12 12:29:07
5. Dude, u xplaining lyk u already telling pros!Pls t
View Tutorial By: Brianjambo at 2009-04-14 06:32:13
View Tutorial By: pmprash at 2009-12-22 01:15:33
8. Thank you a lot for sharing your knowledge! It was
View Tutorial By: Marcelo at 2013-01-17 03:07:37
9. Thanks this page is very useful for me and now I k
View Tutorial By: Yee Wai Wyne at 2009-10-18 23:03:41