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. its simple and easy... good example.
View Tutorial          By: madhu kk at 2012-12-05 07:56:04

2. Dear Sir,

This code is so good. but

View Tutorial          By: Jai Singh Saini at 2010-05-06 06:13:45

3. Sir. Please give an example which is small and und
View Tutorial          By: mogesie gedamu at 2011-12-19 12:55:33

4. Works thnx :D :D :D :D
View Tutorial          By: nik at 2014-11-09 20:44:29

5. Hello,
this is good example, but that is on

View Tutorial          By: Zubair at 2011-11-10 20:46:39

6. This tutorial is so simple, often we dont need to
View Tutorial          By: NIrjhar at 2011-12-12 03:29:52

7. Hi,Please send me running code for sending sms fro
View Tutorial          By: rahul at 2008-11-14 05:15:02

8. gr8 help dude thankx a lot:-)
View Tutorial          By: Mr. Bond at 2011-12-09 19:21:36

9. good one
View Tutorial          By: saurabh at 2012-01-17 04:43:29

10. i use your program to read my GPS ( in COM11 ) .
View Tutorial          By: Dinesh rajapaksha at 2009-11-17 07:25:19