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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Please help me send sms. I did everything , But no
View Tutorial By: Prabhash V S at 2009-06-03 06:40:55
2. Thank you, I need exactly this; cheers :)
View Tutorial By: Lang at 2011-04-08 09:33:24
3. javax.comm.NoSuchPortException
at javax.co
View Tutorial By: agnas at 2008-04-29 16:26:41
4. you example does not run it errors can you pls fix
View Tutorial By: dionesia at 2009-08-24 05:27:37
5. pls can any one have any idea about storing the ca
View Tutorial By: souhir at 2010-01-30 11:04:48
6. what is the usage of 'detail' and 'debug' init par
View Tutorial By: uday at 2011-07-21 04:53:02
7. Oh, Thanks for your code, but I think you should a
View Tutorial By: Songokute at 2013-01-29 13:55:13
8. Very clearly explained...
View Tutorial By: Bina at 2010-04-08 06:56:37
9. I had downloaded all 5 the file
but i need
View Tutorial By: Dhananjay at 2009-12-09 10:20:30
10. Thanx..very useful in this pgm..
View Tutorial By: priya at 2013-02-06 10:54:44