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



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. hi.I am new in j2me and really want to learn more
View Tutorial          By: Deepak kumar at 2010-11-15 03:04:15

2. well done!!nice work
View Tutorial          By: Dxy at 2010-07-26 00:46:55

3. plz show me my answers
View Tutorial          By: Debnita Saha at 2010-05-01 05:15:16

4. Hi Everyone, i tried the code. im using Micromax
View Tutorial          By: adm at 2011-09-06 12:31:18

5. I have a source code of j2ee. but i want to conver
View Tutorial          By: bangaram at 2011-06-07 09:28:45

6. Great details you provided here, very straight for
View Tutorial          By: Jackie Wong at 2010-02-05 10:52:25

7. simply super...every one can understand
View Tutorial          By: prashanth at 2013-03-10 12:20:25

8. right to point.. thanks man
View Tutorial          By: manish at 2012-07-28 15:01:26

9. hi i m vinit jain. i m working on the same project
View Tutorial          By: vinit jain at 2010-02-09 12:16:01

10. thanks it is nice
View Tutorial          By: Ajay at 2011-07-22 03:44:05