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.


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Nice basics. Very helpful
View Tutorial          By: Gorav at 2011-11-11 12:46:28

2. Hi, Please let me know how to implement this progr
View Tutorial          By: Mukul Chadha at 2011-06-29 09:13:28

3. Many thanks for this tutorial. Exactly what I was
View Tutorial          By: Fedor Emelianenko at 2010-10-28 08:01:17

4. Does your Siemens CX75 can show up as COM port dev
View Tutorial          By: mchon at 2008-10-10 18:24:11

5. Realy good one
View Tutorial          By: Sabir at 2011-10-25 12:08:43

6. Hi people,
for those getting the Time out

View Tutorial          By: Ramlak at 2008-05-08 08:28:29

7. i will make to try for rms :)
View Tutorial          By: sebo at 2010-05-20 07:38:28

8. Thanks a lot! This really helped!!!
View Tutorial          By: SuperSeppel13 at 2009-04-14 04:25:06

9. well no one answered , i figured it out yesterday
View Tutorial          By: oded at 2008-09-29 00:32:16

10. HOW TO SET PASSWORD IN JAVA.....
View Tutorial          By: NAKUL at 2012-12-14 05:23:16