English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - November 2006

[Selected]: All categories Computers & Internet Programming & Design

Take a look at this... :
import java.awt.*;
import java.awt.event.*;
public class ComplexNumbers
{
public double a;

public double b;


public void setNumbers()

{


EasyReader console = new EasyReader();
System.out.print("Considering the formula ' a+ bi '" +'\n');
System.out.print("Enter a: ");
a = console.readInt();
System.out.print("Enter b: ");
b = console.readInt();

}

Complex h = new Complex (a,b);

public void Complex (double a, double b)
{


}

public void Complex (double a)
{

}
}

When compiled it returns the error:
cannot find symbol : constructor Complex(double,double)
Help!?!??!

2006-11-05 14:30:03 · 5 answers · asked by ichr123 2

Lets say I have three classes Alpha, Beta and Gamma. Alpha instances Beta as myBeta. Beta has a non-static public variable called accessMe. Now, I can access the variable from Alpha as myBeta.accessMe. I can also access it from Beta as accessMe (of course). My question is how do I access it from Gamma. If I try to access it as Beta.accessMe, the compiler complains that I am referencing a non-static variable from a static context (which is true since "Beta." makes it static). Since I havent instanced Beta in Gamma, I can't refer to it as myBeta.accessMe. I don't want to make betaString static. I don't want to pass myBeta as a parameter to Gamma, nor do I want to make Gamma an Inner Class. I just want to access accessMe, a public variable. Isn't there some easy obvious way to do this?

2006-11-05 14:22:34 · 2 answers · asked by heartsensei 4

what is a program that can start at 1 and go to 999 pushing enter each time.

2006-11-05 14:06:21 · 1 answers · asked by Harezichi 2

i need to learn to find a nice job in chicago or indianapolis. i will be thankful if anyone can help me out with that.

My bachelor degree is in computer science.

2006-11-05 13:20:57 · 1 answers · asked by Fren 2

I m an informatics student. this question is from the course "Logic Design".The course unit no is 254. if there is any info student here then help me to solve it. or if anyone else can solve it then plz do it soon i will thankful to one

2006-11-05 13:06:40 · 3 answers · asked by SAM_4_U 1

Are there any good programs that come on the mac?

2006-11-05 12:33:40 · 4 answers · asked by Dex's Gal 3

I have to write a program that calulates and returns the value of x^n.

Is this code correct:

#include

double PowerOf (double x, int n)
{
for(i = 0; i<= n; i++)
result = x;
result = result * x;
return (result);
} // end function

2006-11-05 12:23:25 · 5 answers · asked by Anonymous

Hi, does anyone know if you can blend pictures together on paint ? If you can, please tell me how. Best answer gets 10 points !!!!!!!!!!!!!! Thanx !

2006-11-05 11:57:23 · 3 answers · asked by Anonymous

What kind of lanuage do you use to edit music(If i were to say try to program a music editor) and can someone give me a tutorial. I want to be able to implement it in a program not acually just use an editing software.

2006-11-05 11:50:50 · 4 answers · asked by windfishfighter 3

I'm trying to make a working feedback form and it's proving a hard task to say the least. I've downloaded this:

http://www.scriptarchive.com/formmail.html

Which i've been told is very popluar. But how do i get it to work. All i'm trying to do is have a really simple form that can be filled in a return basic information like name, email and query.

Can someone give a bullet proof explaination of how to get this up and running.

I've create a form in dreamweaver. It's targeting the mailform cgi script, which is in the cgi bin of the website. I've replaced a few fields in the script with the web address, ip and email address, i've changed the permissions settings (which i think are right, but they might be wrong)

But still nothing!!

Pleeeeeeease help someone!

2006-11-05 10:22:21 · 2 answers · asked by thedaveidentity 1

I am just starting my own realtor business and would like to get a web page started. Any help would be appreciated

2006-11-05 10:15:55 · 6 answers · asked by Chateau 1

I Will PAY ??

2006-11-05 09:34:22 · 6 answers · asked by Anonymous

2006-11-05 09:18:08 · 8 answers · asked by Trice J 1

I really like editing and being creative with my pictures. do you where i can get photoshop and brushes and everything i need for free???? please help. IM me if you need. and if you could tell me how to use it.. it would be really appreciated.

2006-11-05 08:25:27 · 6 answers · asked by Alicia R 2

ok there's an input box right, and when you open the input box you can enter letters or numbers or special characters,(REMEMBER THIS IS NOT A TEXT BOX, ITS AN INPUT BOX.) I just want the user to insert numbers and decimals, but no letters or special characters. * Visual Basic 6.0 Professional***can you please include an example,thx!****

2006-11-05 06:58:23 · 2 answers · asked by hectexheat 1

I typed something in my "About Me" section, but on my profile, all the paragraphs I typed are hyperlinked!!! How do I get rid of this? I dont want others to click on it and having it lead them to some pointless webpage. I just want it on my profile, not a link. Someone told me to put , but that didnt help at all. Please help!

2006-11-05 06:49:07 · 6 answers · asked by Dark Spirit 2

how do you make stuff like hearts, music notes, diamonds, and stars ♥ i know how to make a heart but that is it. i looked them up but it only gave me accents and stuff not the stuff i a m looking for!

2006-11-05 05:29:44 · 4 answers · asked by Anonymous

where on computer to design pages, and how to post to internet.

2006-11-05 04:49:40 · 3 answers · asked by aaron m 1

I want to play a background mp3 on my website... (it's my own composition so no copyright answers please!)

Is there any HTML code I can use to do this and make it play automatically? (and even loop if possible!)

2006-11-05 04:40:00 · 2 answers · asked by crafty1980 1

How can we put videos in our html files.Is there any code to do so.

2006-11-05 04:26:03 · 4 answers · asked by keshav_khera 2

At present I am doing manually synching between the files on my ftp server and my local computer. But as the number of files is growing, I would like to do a synching between my ftp server files and my local computer. All these files are text files. So do you know more about this?

2006-11-05 04:14:51 · 1 answers · asked by Ketan 1

tell me various project names which would be useful for learning in java i hav done core java with database

2006-11-05 04:01:58 · 3 answers · asked by kpk1278 1

i know of EZtoon but i want to be able to use color, also if you know of one with onion ring please tell me. thanks in advance

2006-11-05 03:30:03 · 3 answers · asked by aido 2

what do i write at when i get done fdisk and set the partition? im at the piont that shows the A: nowe wht do i do to get it to let me stare installing a new operating system (what comand to i enter to putr it on my C: drive) ???

2006-11-05 03:18:17 · 5 answers · asked by joseph l 1

I am compleate my BCA in 2003. I am fasil in MCA so i tense about my future.

2006-11-05 03:08:22 · 2 answers · asked by Anonymous

im planning on making a funny cartoon with flash when mario beats up other video game characters, but how do i use the sprite sheets they give out online?

2006-11-05 02:50:35 · 1 answers · asked by nick 5

i need a easy to use VERY GOOD website builder and iv tried dream weaver but i dont like it.

2006-11-05 01:47:12 · 4 answers · asked by araleryani 1

fedest.com, questions and answers