Friday, May 30, 2008

i cannot see flash??
i also cannot see any videos!!
i also downloaded Adobe flash Player and Java
AGAIN
to see if it would work.
it still didnt work??
anybody have an idea??
p.s.
i have Windows Vista Basic

Hello- I have a class Frog and i m trying to around any array so I can access 3 different instances in a loops but i can t get it working. Does anyone have any ideas?

public Frog[] frog = {frog1-frog2-frog3};

public void selectDancingFrogs()
{
numOfFrogsDancing = 0;
for (int i=1; i<=3; i++)
{
boolean result;
result = OUDialog.confirm("Please confirm if you want Frog"+i+ " to dance");
if (result)
{
numOfFrogsDancing++;
frog[1].setColour(OUColour.YELLOW);
}
else
{

}

}
}
I tried changing it to frog(i) and it still didn t work. I just put frog(1) to test it
thanks for the advice I have made those changes. but thats not the problem. even when I have changed this when i run this it doesn t work.
I get the error messsage Exception: java.lang.NullPointerException

Program:
- asks the user to input a base 10 value.

- then it continually divides the number inputted by 2- keeping track of the remainders- in order to put them back together later (this is to convert the base 10 value to a binary value; base 2).

- and then it outputs the conversion of the number in binary by adding string values

The commands that I can use are only:
- for- do/while- while (basic looping commands)
- system.out.println and system.out.print
- if- else- else if- case (basic decision commands)
- input commands: -Integer.parseInt(in.readLine())-
-Double.parsedouble (in.readLine())-
-in.readLine()
- basically anything that would be known in a grade 11 computer engineering course (we re learning basic java programming)

- I am NOT allowed to use Boolean expressions**


Any kind of help with this is much appreciated.
I d like to also say thanks ahead of time :]

Hello- I have the following for loops so far:
public void Frogs()
{
frogCycleNum = 1;
for (int cycle = 1; cycle <= 3; cycle++)
{
OUDialog.confirm("Please confirm if you want Frog"+frogCycleNum+ " to dance");
frogCycleNum++;
frog1.setColour(OUColour.YELLOW);
}
}

But I have 3 instances of frog I want this to loop through
frog1- frog2 & frog3.
I want to set the colour for each other these while the loop is
in place but I don t know how to edit each one at a time as
at the moment I only have
frog1.setColour(OUColour.YELLOW);
but this won t work for frog 2 & 3

any ideas?

Can i please have a step by step answer? Thank u in advanced.

I am looking for my first laptop to replace my desktop but without a huge price tag. This is one from dell for $998 or can I get a comparable one cheaper or do I need something different? Uses: school- online classes- children s games- internet surfing and online java based games.

Dell Inspiron 1520
Intel® Core™ 2 Duo T5450 (1.66GHz/667Mhz FSB/2MB cache)
Genuine Windows® XP Home
Anti-glare- widescreen 15.4 inch display (1280x800)
Intel Graphics Media Accelerator X3100
4GB Shared Dual Channel DDR2 at 667MHz
120GB SATA Hard Drive (5400RPM)
DVD+/-RW Drive
Dell Wireless 1395 802.11g Mini Card
Integrated 2.0M Pixel Webcam
56Whr Lithium Ion Battery (6 cell)
High Definition Audio


Also- would I be able to keep my current isp and modem and just connect to the laptop when I want to use it? I don t really care about using wireless.

No comments: