473,498 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP .... Beginner JAVA

1 New Member
can any one help me on this one ?
thank you

Write the definition of a class Telephone . The class has no constructors, one instance variable of type String called number , and two static variables. One is of type int called quantity , initialized to 250 ; the other is of type double called total , initialized to 15658.92 .
Jun 12 '07 #1
4 3016
jeffbroodwar
118 New Member
Hi,

-------------------------------------------------------------------------------------------------------------------

/*
* Telephone.java
*
* Created on June 12, 2007, 11:17 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

/**
*
* @author PC_JeffBroodwar
*/
public class Telephone
{
String number;
static int quantity = 250;
static double total = 15658.92;




}

-------------------------------------------------------------------------------------------------------------------

Hope this helps,

Regards,
Jeff
Jun 12 '07 #2
nomad
664 Recognized Expert Contributor
Hi,

-------------------------------------------------------------------------------------------------------------------

/*
* Telephone.java
*
* Created on June 12, 2007, 11:17 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

/**
*
* @author PC_JeffBroodwar
*/
public class Telephone
{
String number;
static int quantity = 250;
static double total = 15658.92;




}

-------------------------------------------------------------------------------------------------------------------

Hope this helps,

Regards,
Jeff
Jeff Remember this is a site to help not to do someone homework.
nomad
Jun 12 '07 #3
r035198x
13,262 MVP
can any one help me on this one ?
thank you

Write the definition of a class Telephone . The class has no constructors, one instance variable of type String called number , and two static variables. One is of type int called quantity , initialized to 250 ; the other is of type double called total , initialized to 15658.92 .
nomad is right. chihwei should at least have posted some code that he's attempted. Spoon feeding will not help him pass exams.
Jun 12 '07 #4
jeffbroodwar
118 New Member
Sorry, I didn't know that...... ^^;
Jun 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2064
by: Ralph H. Stoos Jr. | last post by:
All, I need suggestions for learning Java. I have purchased several books (Java Essentials, Beginning Java 2) and have tried to read and write code. Apparently, I am not easily able to read a...
15
5070
by: RAM | last post by:
Hello, I graduated computer science faculty and decided to became a programmer. Please help me to make a decision: Java or Microsoft .NET? What is the future of Java? Thanks! /RAM/
12
20368
by: lifeshortlivitup | last post by:
Hello all....I am brand new to this whole Java environment and have become stumped with an early homework assignment. It sounds simple enough, but after hours and hours of working on it I can't get...
0
7091
by: south622 | last post by:
I'm taking a beginning Java course and I'm stuck in week eight of a nine week course. If anyone could help me I would greatly appreciate it. This assignment was due yesterday and each day I go past...
12
2660
by: steven acer | last post by:
hello, i have a java app that constructs an xml from a specific file format and vice versa. i've been asked to convert it to c++, but im not an expert in c++, actually im mere beginner you can...
1
2807
by: twin2003 | last post by:
need help with inventory part 5 here is what I have to do Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next...
26
4579
by: Hazza | last post by:
Hello, I am teaching myself java and am completely stuck. I am using the java development kit and vista command prompt to compile and interpret programmes. I am getting error codes which don't make...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7004
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.