Saturday, May 31, 2008

I am using JOptionPane package but the thing is I can t use "int" datatype for Totalmarks because the type is not compatible with JoptionPane.showmsgdialog(). What can I do so that I can use TotalMarks as integer. Thank you.

import javax.swing.JOptionPane;

public class MyClassResults
{
public static void main(String args[])
{
String StudentName[]= new String[5];
String TotalMarks[]= new String[5];

System.out.println("My Class Results");
System.out.println("Student Name \t\t" +"Total Marks") ;
for(int i=0;i<5;i++)

{
StudentName[i]=JOptionPane.showInputDialog("Student Name:");
//JOptionPane.showMessageDialog(null-StudentName[i]);

TotalMarks[i]=JOptionPane.showInputDialog("Total Marks:");
//JOptionPane.showMessageDialog(null-TotalMarks[i]);

System.out.println(StudentName[i]+ "\t\t\t\t" + TotalMarks[i]);

}

}
Thank you BlackCom- it worked thank you so much!

Given the following program- write down the output if the user key in 20 as input:

import java.util.Scanner;
public class Numbers {
public static void main(String [ ] args) {
int num;
int x = 2- y = 5- z = 3;
Scanner sc = new Scanner (System.in);

System.out.println ("Enter number: ");
num = sc.nextInt ();

System.out.println ("The value of num is " + num);
System.out.println ("The value of num is " + num- -);
System.out.println ("The value of num is " + num++);

System.out.println ("x = " + x);
System.out.println ("y = " + y);

num = x + y;
System.out.println ("The value of num is " + num);

z = num * x;
System.out.println ("z plus z = " + z + z);
}
}

ANS:

...

How to go about doing this? I know this shld be pretty easy..but I get confused seeing all those wordings...Please explain and help me- thanks :)

it says this when i am trying to download it " the highlighted volumes do not have enough disk space for currently selected features. You can remove from the highlighted volumes- choose to install less features onto local drives- or select different destination drives."
someone please help? thank you

Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 11:05:16 PM- on 5/24/2008
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v7.00 (7.00.6000.16640)
Boot mode: Normal

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\Ati2evxx.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Lavasoft\Ad-Aware 2007\aawservice.exe
C:\WINDOWS\system32\spoolsv.exe
C:\PROGRA~1\AVG\AVG8\avgwdsvc.exe
C:\Program Files\COMODO\Firewall\cmdagent.exe
C:\Program Files\Raxco\PerfectDisk\PDAgent.exe
C:\PROGRA~1\AVG\AVG8\avgrsx.exe
C:\WINDOWS\system32\Ati2evxx.exe
C:\WINDOWS\Explorer.EXE
C:\Program Files\Java\jre1.6.0_06\bin\jusched.exe
C:\PROGRA~1\AVG\AVG8\avgtray.exe
C:\Program Files\COMODO\Firewall\cfp.exe
C:\Program Files\ATI Technologies\ATI.ACE\cli.exe
C:\WINDOWS\system32\ctfmon.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\ATI Technologies\ATI.ACE\cli.exe
C:\Program Files\ATI Technologies\ATI.ACE\cli.exe
C:\Program Files\AVG\AVG8\avgscanx.exe
C:\WINDOWS\system32\svchost.exe
C:\PROGRA~1\MOZILL~1\FIREFOX.EXE
C:\Program Files\Trend Micro\HijackThis\HijackThis.exe

R1 - HKCU\Software\Microsoft\Internet Explorer\Main-Search Page = http://go.microsoft.com/fwlink/?LinkId=54896
R0 - HKCU\Software\Microsoft\Internet Explorer\Main-Start Page =
R1 - HKLM\Software\Microsoft\Internet Explorer\Main-Default_Page_URL = http://go.microsoft.com/fwlink/?LinkId=69157
R1 - HKLM\Software\Microsoft\Internet Explorer\Main-Default_Search_URL = http://go.microsoft.com/fwlink/?LinkId=54896
R1 - HKLM\Software\Microsoft\Internet Explorer\Main-Search Page = http://go.microsoft.com/fwlink/?LinkId=54896
R0 - HKLM\Software\Microsoft\Internet Explorer\Main-Start Page = http://go.microsoft.com/fwlink/?LinkId=69157
R0 - HKLM\Software\Microsoft\Internet Explorer\Search-SearchAssistant =
R0 - HKLM\Software\Microsoft\Internet Explorer\Search-CustomizeSearch =
O2 - BHO: Adobe PDF Reader Link Helper - {06849E9F-C8D7-4D59-B87D-784B7D6BE0B3} - C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelper.dll
O2 - BHO: Spybot-S&D IE Protection - {53707962-6F74-2D53-2644-206D7942484F} - C:\PROGRA~1\SPYBOT~1\SDHelper.dll
O2 - BHO: SSVHelper Class - {761497BB-D6F0-462C-B6EB-D4DAF1D92D43} - C:\Program Files\Java\jre1.6.0_06\bin\ssv.dll
O2 - BHO: AVG Security Toolbar - {A057A204-BACC-4D26-9990-79A187E2698E} - C:\PROGRA~1\AVG\AVG8\AVGTOO~1.DLL
O3 - Toolbar: AVG Security Toolbar - {A057A204-BACC-4D26-9990-79A187E2698E} - C:\PROGRA~1\AVG\AVG8\AVGTOO~1.DLL
O4 - HKLM\..\Run: [Adobe Reader Speed Launcher] "C:\Program Files\Adobe\Reader 8.0\Reader\Reader_sl.exe"
O4 - HKLM\..\Run: [SunJavaUpdateSched] "C:\Program Files\Java\jre1.6.0_06\bin\jusched.exe"
O4 - HKLM\..\Run: [AVG8_TRAY] C:\PROGRA~1\AVG\AVG8\avgtray.exe
O4 - HKLM\..\Run: [COMODO Firewall Pro] "C:\Program Files\COMODO\Firewall\cfp.exe" -h
O4 - HKLM\..\Run: [HotKeysCmds] C:\WINDOWS\system32\hkcmd.exe
O4 - HKLM\..\Run: [ATICCC] "C:\Program Files\ATI Technologies\ATI.ACE\cli.exe" runtime -Delay
O4 - HKCU\..\Run: [ctfmon.exe] C:\WINDOWS\system32\ctfmon.exe
O9 - Extra button: (no name) - {08B0E5C0-4FCB-11CF-AAA5-00401C608501} - C:\Program Files\Java\jre1.6.0_06\bin\ssv.dll
O9 - Extra Tools menuitem: Sun Java Console - {08B0E5C0-4FCB-11CF-AAA5-00401C608501} - C:\Program Files\Java\jre1.6.0_06\bin\ssv.dll
O9 - Extra button: Research - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:\PROGRA~1\MICROS~2\Office12\REFIEBAR.DLL
O9 - Extra button: (no name) - {DFB852A3-47F8-48C4-A200-58CAB36FD2A2} - C:\PROGRA~1\SPYBOT~1\SDHelper.dll
O9 - Extra Tools menuitem: Spybot - Search & Destroy Configuration - {DFB852A3-47F8-48C4-A200-58CAB36FD2A2} - C:\PROGRA~1\SPYBOT~1\SDHelper.dll
O9 - Extra button: (no name) - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:\WINDOWS\Network Diagnostic\xpnetdiag.exe
O9 - Extra Tools menuitem: @xpsp3res.dll--20001 - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:\WINDOWS\Network Diagnostic\xpnetdiag.exe
O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe
O9 - Extra Tools menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe
O16 - DPF: {17492023-C23A-453E-A040-C7C580BBF700} (Windows Genuine Advantage Validation Tool) - http://go.microsoft.com/fwlink/?linkid=39204
O16 - DPF: {362C56AA-6E4F-40C7-A0B5-85501DBDAD77} (Scanner.SysScanner) - http://i.dell.com/images/global/js/scanner/SysProExe.cab
O16 - DPF: {6414512B-B978-451D-A0D8-FCFDF33E833C} (WUWebControl Class) - http://www.update.microsoft.com/windowsupdate/v6/V5Controls/en/x86/client/wuweb_site.cab?1208700590359
O16 - DPF: {67A5F8DC-1A4B-4D66-9F24-A704AD929EEE} (System Requirements Lab) - http://www.systemrequirementslab.com/sysreqlab2.cab
O18 - Protocol: linkscanner - {F274614C-63F8-47D5-A4D1-FBDDE494F8D1} - C:\Program Files\AVG\AVG8\avgpp.dll
O20 - AppInit_DLLs: avgrsstx.dll C:\WINDOWS\system32\guard32.dll
O23 - Service: Ad-Aware 2007 Service (aawservice) - Lavasoft - C:\Program Files\Lavasoft\Ad-Aware 2007\aawservice.exe
O23 - Service: Ati HotKey Poller - ATI Technologies Inc. - C:\WINDOWS\system32\Ati2evxx.exe
O23 - Service: ATI Smart - Unknown owner - C:\WINDOWS\system32\ati2sgag.exe
O23 - Service: AVG8 WatchDog (avg8wd) - AVG Technologies CZ- s.r.o. - C:\PROGRA~1\AVG\AVG8\avgwdsvc.exe
O23 - Service: COMODO Firewall Pro Helper Service (cmdAgent) - Unknown owner - C:\Program Files\COMODO\Firewall\cmdagent.exe
O23 - Service: PDAgent - Raxco Software- Inc. - C:\Program Files\Raxco\PerfectDisk\PDAgent.exe
O23 - Service: PDEngine - Raxco Software- Inc. - C:\Program Files\Raxco\PerfectDisk\PDEngine.exe

--
End of file - 5878 bytes

I have a Venus and i was wondering if I can put games onto besides the get it now ones.
I have the date cable- but- i don t have mobile web. I read it wasn t java enables but- i still see sites offering java games for it with .jad and .jar files.
(http://www.mobilerated.com/lg-vx8800-venus-games.html)
Im just really confused now.

No i am not asking you to write the code for me-just need help gettin started on writing a java algorithm that will reverse the digits entered. for example. the input is 1234
the output is 4321. Thanks
I am unfamiliar with a stack... please tell me more if you can.... thanks!
They will be put in from the user as a long

am bored and i know its wrong- but some please help get back in its based on using java to work it

I m looking to buy a new computer for my room sometime soon- I don t play games on them so all i need is a basic desktop. I m trying to learn a few programming languages as well; so are the vostro or optiPlex here a good deal? Or are there any you would recommend?

http://www.dell.com/content/products/features.aspx/hot_offers_dt?c=us&cs=04&l=en&s=bsd&dgc=BF&cid=7421&lid=197378

I m new at this- and under the impression that you don t need much for programming- but anyways would they work well enough for programming java or C++?

hey guys i had a quick question about java. I just started to learn what exactly java is but one thing confuses me all the time. I notice at the top of any java program theres an import decleration or several of them. What exactly does this do?

when i try to launch a game on java no matter what game it is it just says unable to launch appliction so then i tried installing the new java version still didnt work so what and i doing wrong
and im not to smart with computers so make your answer simple
oh ya and when i try opening cmd it pops up for a sec and closes

By videos- I mean videos on websites such as youtube. I have installed flash and windows media on the computer- and have turned my java script on. Any ideas?

How many monster flavors are there? Whats your Fave? Any Suggestions? Is the Java one good?

this question is confusing- it asks which of the following identifies could be class names... i cant find in my book any rules to what cant be a class name...

NewBalance- addValues- CalculateTax- power- absVal- DisplayAMessage- invoices- SendMessage- taxes- netPay- amount- salestax- CardGame- newBalance- ComputeGPA

thats them- i cant see why any of them couldnt be used as a class name- if you can please explain why or why they can t be used- is there rules to class names? i know they cant start out with numbers or reserved words- far as i see there isnt a reserved word used.

For C Turbo C- for C++ turbo C++- and Visual C++ like that for java ...????what is the development environment??
plz tel me download link also...

i m having trouble installing limewire. i uninstalled the program yesterday because i was experiencing problems. however- i ve tried reinstalling several times since but it s giving me a corruption error message and the following keeps popping up. Anyone have any suggestions???

LimeWire version 4.16.6
Java version 1.6.0_02 from Sun Microsystems Inc.
Windows Vista v. 6.0 on x86
Free/total memory: 31311088/33357824

com.limegroup.gnutella.gui.GUILoader$StartupFailedException: file [LimeWire.jar] has hash of [F73A5406A60A48F69E99F10AFDC368F8] instead of expected [A00EAB0AE1132B710BC84BE0CFDE56AF]
at com.limegroup.gnutella.gui.GUILoader.verifyHashes(GUILoader.java:318)
at com.limegroup.gnutella.gui.GUILoader.sanityCheck(GUILoader.java:284)
at com.limegroup.gnutella.gui.GUILoader.load(GUILoader.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorIm

hey ..i have a two month brk--nd am intersted in java...should i go fr a course at niit delhi --or should i study it myself.....i hav sufficient knowledge abt c/c++---i f i should study it myself??which books should i refer???? pls guide me as soon as possible..and also how important it is for me to clear the certification tests??i have just completed my first year in btech--nd have a 2 month brk.....
..any other detailed suggestions would also be appreciated......thanks a lot!!!!

-ARRAY
-TWORDNEW??????
-JAVA
-SUBSCRIPT
-.LENGTH
-COMPILER
-PROCEDURAL PROGRAMMING

a friend is doing a course...n his assignment...is to get definitions..this is all he told me....not sure if i got spellings right...any help would be appreciated!

Does anyone know why this doesn t work? I get a method error

static String[] person={"personA"-"personB"-"personC"};


public void persons()
{
for (int i = 0; i <= 2; i++)
{
boolean result;
result = OUDialog.confirm("Please confirm if you want Person"(i+1) " to dance");
if(result)
{
person[i].setColour(OUColour.RED);
}
else
{
person[i].setColour(OUColour.RED);
}
}

am trying to build server and client application using the java code >
for example i wish to build a system that take a variable from the client frame such as the user name that the user of the client application type it in the jave text field can read it in the java server plz am doing
sorry ... but I mean the code in java to create server and client application
i hope that clear
if not send me to abushehab121@yahoo.com

Am i right in understanding that java can be used on any platform and is a lot more slower than c++ which is mainly be used for games since it runs faster and java is mainly used for gui for business and finance and can be used on any platform. i was just wondering if someone can give me a good example for what both of these java and c++ are used for.

Friday, May 30, 2008

Its very tuf for us to post the question because its a java project so if anyone could mail me i will attach the file.

I am using JCreator right now- its ok but ..i was wondering if there is anything better? What do you use and please give some advantages of it? Please point to something that is simple and something that wouldn t take weeks to get used to the software.

Thank you for your precious time.

its kind of neat
after i learn this and then css iam thinking of php or java
give me some ideas

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.

i am learning c++ and someone suggested that java is better than c++ so u should learn java after c++ would it make me confused with syntax and func of both ?? what is the scope............
should i learn it ??

i am learning c++ and someone suggested that java is better than c++ so u should learn java after c++ would it make me confused with syntax and func of both ?? what is the scope............
should i learn it ??

How do I turn my Java script back on. Evertime I try to watch a video- it says I either have Java script turned off- or I need to update my flash player. I did the flash player over and over- and it says "download sucsesfull"...whats the deal..and please bare in mind when answering- that I have only half an idea on how to use my computer...so dumb down the answer for me a little- would ya?

How do I turn my Java script back on. Evertime I try to watch a video- it says I either have Java script turned off- or I need to update my flash player. I did the flash player over and over- and it says "download sucsesfull"...whats the deal..and please bare in mind when answering- that I have only half an idea on how to use my computer...so dumb down the answer for me a little- would ya?

i am to get trained in one language........but confused between both of them so which one to chose and why? why?
since its difficult to master in both or do i need to if im to be a software engineer

what is the best method for find the sum of divisors of a number? Something that could be applied to a java program is possible.
wow see i didn t know you could do square root and mod in java.. excellent to know. thank you!

help me. they said that i have to install the flash player. but when it comes to the website- i cant even install it. i ve clicked install Active X - but nothing pop up. arghhhh. help me. is it because my java? my java is on. suddenly......

public class Hand {


public Hand() {
// Create a Hand object that is initially empty.
ArrayList hand = new ArrayList();


I need to debug the error cuz it says "cannot find symbol - class ArrayList"

What else do I need?
And do I need to import anything ex.import.java.util.swing.*; ???

whenever I save an e-mail from yahoo or gmail or a google map- I can t see anything in the saved file. I open the files with the notepad or with wordpad and I m able to see the text- but together with html code and an error message that says that maybe java script is disabled or turned off- but Java is enabled and turned on in the options of Internet explorer 7. I ve always had this problem- how can I solve it?

how to do object and class diagrams in java

Were that files created by Java or whatever ? If you guyz know the answers please answer it here ! Thanks a lot !

I just want to to know how stressful it is.. because i m studying Computer Science and it really sucks now.. i liked it before but now everything becomes very complicated (c#- mysql- java swing..). It s not difficult but i think it s very complicated.. and in a firm a real project must be perfect.There s always possibility to make mistakes. So i m waiting answers from real programmers.

Thursday, May 29, 2008

I do have java but i am still unable to conect the chatrooms and games. Why am I having these issues? The new window pops up with the little shapes in the upper left corn for a moment then the screen goes blank with the word "done" on the bottom of the screen.

Can someone send me a link or the whole code for free Backgammon source code for Java not the game. i need the source code.

I am having a problem with packaging. I created a java program called DealOrNoDeal.java- I put the
DealOrNoDeal.class inside a jar file called dealornodeal.jar together with its supporting images inside
images folder . I used jar cfe dealornodeal.jar DealOrNoDeal.class images DealOrNoDeal.class
command in cmd to create an entry point so my Manifest.mf has the following codes inside:

Manifest-Version: 1.0
Created-By: 1.6.0_02 (Sun Microsystems Inc.)
Main-Class: DealOrNoDeal.class

I tried to run it using java -jar dealornodeal.jar command in cmd but it is throwing
Exception in thread "main" java.lang.NoClassDefFoundError: DealOrNoDeal/class
I also tried executing it by double-clicking the jar file but it is prompting the same error.

I followed the tutorial on how to package my application in java.sun.com but it seems that something
is wrong. Why is it happening? Did I missed something in the tutorial? Thanks!

I get this message when I try and log into the work database- does anyone know why? I know my login and password are correct because I can login using someone elses computer.

Loading JDBC driver oracle.jdbc.driver.OracleDriver
Connecting to JDBC
access denied (java.util.PropertyPermission oracle.jdbc.J2EE13Compliant read)

i have already activate my gprs..but when it comes to browsing the notice wont appear instead "communication failed contact your service provide"r..i already ask the costumer care but it has nothing to do .. even i have opera mini and the java games dont work . .please help

Ok- my internet was working ok this morning- but after coming back from God knows where- my messengers don t log me in- (MSN messenger saying that I have Proxy or firewall problems) Internet Explorer shows nothing but "This page cannot be displayed".

On Mozilla Firefox- everything works fine. i can browse the web- I can download stuff- but I can t actually start the download (i.e. Java application says that it can t connect to the internet.) In addition- the two little monitors that display how your internet is doing don t even flash blue at all- but yet- I m here on Yahoo typing this rant and question.

All other computers in my house work just fine. they have firefox- and the same messengers- but they work just fine.

Is there a way to fix this?
Yahoo messenger also does the same thing as MSN messenger.

Whats a proxy?
It only happens to my computer- not the other 4 active ones in the house

Im struggling with my java class.

Do you have an idea of how to
set up this program?

Investment Program:
User inputs:
-how much you make per week
-how many years you want will work
-interest rate
-how much money do you want to increse after each 5 years

Output:
-a list of how much you will make each year
ex.
Year 1: 2000$
Year 2: 2750$
Year 3: 3000$


any ideas?
thanks so much!!

how would i program a tic tac toe program so that i could play against a computer?

i want to download a file that uses java to my phone and get it to work but im unsure about the prescence of java on my phone already.

I need to make a program that does the following:
- program randomly selects a number between 10 and 30 (can also equal the numbers)
- asks the user to guess ie. "enter a guess"
- the user inputs a guess (loops until the user gets it right- while counting the attempts)
- when it s less than 10 or greater than 30- output that the number must be between 10 and 30- and asks user to try again- **and the attempt is not counted in the counter**
- when it s wrong- output that it s wrong ie. "sorry try again" and loops so that it repeats until the person gets the right number
-once the person gets it right- output "yeah you got it" and display the number of attempts that they tried (not including the guesses out of the range of 10-30)

Please note:
only able to use the basic variable declarations-
the numbers are all integers-
basic loop commands (for- do/while- while)
outputs using system.out.println(" ")
decision structures (if- else if- case)
other commands: input codes
It s programming at a grade 11 level using "Ready to Program" (with Java).
I m having issues with the order of coding for the looping structure- and also the attempt counter specifically.
I already have the random number part and user-inputs done- I just need help with how to properly loop it and how to count it.
I just put the entire assignment there for more details on what I m trying to do.
So if it s easier to just explain the looping part- and counter part- rather than write out a whole program- please do so.
I really need a template to work with.
Any help is much appreciated.
MANY THANKS AHEAD OF TIME :)
Thankss evilfrenchguy :p

Every time I try to run my Blue J program it pops up saying that it could not find any java systems- and that it requires a JDK/J2SDK to be installed in order to run. I can t find a link to the download anywhere- and every download I try still causes it not to work. I have a big project due using BlueJ need a link to the download plz! Any help would be appreciated- i would love you forever. Not really but you get my urgency.

I m trying to come up with a cool name for my new coffee shop and am hitting the wall...I m across the street from my local community college and want to be cool/fun and not dull.

i can download the songs just fine but it wont let me preview or play the song threw limewire. if you can help me out plz answerthanks

Hi-

I am a Windows programmer (I use C++- Java and VB 2005). Now I want to develop Apps for the iPhone [2.0 Coming in June].
I have the latest SDK on my Intel Mac. Now- can anyone suggest me a set of videos for Obj C++ Beginners. And can someone post basic commands to get INFO from the phone.
Like:
Get Free_DiskSpace()
Get Carrier_Name()
Get Firmware_Ver()

Etc........ Thanks!

whenever i try and download java enviroment it says"This installation package could not be opened-verify thath the package exisits and that you can access it-or contact the application vendor to verify that this is a valid windows installer package"-please someone help me i need to download it urgently and haven t a clue what to do

I wanted to download some shockwave games but I do not know if it is possible. I tried every swf and flv downloader that I have both in firefox and IE but to no avail. I have a lot of flash games though I am trying new games like Teen Titans Battle Blitz. I don t seem to get it saved in my pc so I can play it offline. I also tried looking at the source codes but I m just a begginer at HTML and Java. I also tried the "save as" method from firefox but I only got a DCR file. Please if someone knows how to do this please help. There are a lot of shockwave games I wanted to download.

I seem to be stumped on this. I found the derivatives with respect to x and y why but still had trouble. Out of curiosity I graphed the function with a java applet and the graph looked pretty confusing. Step by step- how do I find where this function is not continuous?

out.println("<script language=\"javascript\">");
out.println("function disableField()");
out.println("{");
String x="";
out.println("<%x=%>document.form1.usern.value;");
out.println("document.form1.pass.value="+x+";");
out.println("}");
out.println("</script>");

This is my code.. plss help me T_T

what is it?
do i need it?
and will it conflict with any other apps like adobe or java?
windows update says it is available and i am considering installing it.

import java.util.Vector;

public Hand() {
hand = new Vector();
}

public void sortBySuit() {
Vector newHand = new Vector();
while (hand.size() > 0) {
int pos = 0;
Card c = (Card)hand.elementAt(0);
for (int i = 1; i < hand.size(); i++) {
Card c1 = (Card)hand.elementAt(i);
if ( c1.getSuit() < c.getSuit() ||
(c1.getSuit() == c.getSuit() && c1.getValue() < c.getValue()) ) {
pos = i;
c = c1;
}
}
hand.removeElementAt(pos);
newHand.addElement(c);
}
hand = newHand;
}
public void sortByValue() {
Vector newHand = new Vector();
while (hand.size() > 0) {
int pos = 0;
Card c = (Card)hand.elementAt(0);
for (int i = 1; i < hand.size(); i++) {
Card c1 = (Card)hand.elementAt(i);
if ( c1.getValue() < c.getValue() ||
Card c1 = (Card)hand.elementAt(i);
if ( c1.getValue() < c.getValue() ||
(c1.getValue() == c.getValue() && c1.getSuit() < c.getSuit()) ) {
pos = i;
c = c1;
hand.removeElementAt(pos);
newHand.addElement(c);
}
hand = newHand;
This is part of my code. How would you change the vectors into arrays?? It d be better if you could also give me an example... Thanks!!

In my main class is there a way for me to declare- but not define an object for a custom class I made? I want to be able to make the object differently for certain situations using methods. Since the methods have separate variables and objects- I would need to have a global object declaration- right?

It ll give me an error unless I have static after private. Is it doing right? Can I still manipulate the object from any method in my main class?

which allows you to add and remove peoples details- such as their names- phone numbers- and addresses?

if you d rather you can send my an email- which is trevman75@yahoo.com

Consider this statement for computing the average of x- y- and z.
*
double average = x + y + z / 3;

Which of the following statements is correct?

A) The code always computes the correct average.

B) The code works correctly provided x- y- and z are variables of type double

C) The code works correctly provided x- y- and z are variables of type int

D) The code only gives the right answer when x = -y


Won t it always give the wrong average? because its missing the ( ) around the numbers it needs to add?
Like:

double average = (x + y + z) / 3;

Wednesday, May 28, 2008

Any books- tutorials- links- articles you know? I m kinda new to here. Thanks. :-)
Actually- I want to call a web service created using C#.

so i need help calling a method from the same class? does anybody know how i would run another method in the same class according to the number of trials i input and whether it produces a true or a false?

I am trying to pass an Account array to the bubblesort method and use bubblesort to sort the arrays names. Each account in the array has a name (String)- balance (double) and account number (long). I ve been searching and searching- but all I can find to get to work for the bubblesort method is an array of type int (generally). I have tried several times- but get many errors.
I can t find where to respond to other people s responses on here! Ummm.... how do I overload the > and < (to the second person that responded).

How can I use Java Sockets to transfer the folder from client to server or vice versa.Can any one suggest some helpful links or some sample codes?
Actually the folders can have any number of files and recursively any number of subfolders too.

I am looking around Portland- Oregon for a summer job in the general area of computer programming. The problem is- I m not quite sure which jobs I would be able to get and where to find them.

I am a college student (computer science major) going into my junior year. I ve done some web design- but my only serious production level project was a set of relatively simple set of PHP scripts combined with MySQL to manage entries in a county wide contest in Clackamas County. However- I know several languages- though I don t have complete mastery of them. I good knowledge of the mechanics of HTML/CSS- but I m not great when it comes to layouts.

Languages:
Thorough: (X)HTML- CSS
Solid working knowledge: Python- PHP- generic XML
Basic knowledge: C++- Java- JavaScript- bash- SQL

This isn t a classified ad- I m just looking for advice as to what s out there and how to get it.

java moss- baby tears- red leaf ludwigia

Igot a couple of problems for anyone who is interested and can help me solve them. They deal with Java applets.

Design and implement an applet that draws the side view of stair steps from the lower left to the upper right.

Design and immplement an applet that draws 100 circles of random color and random diameter in random locations. Make sure that in each case the whole circle appears in the visible area of the applet.

Design and Implement a class called Building that represents a drawing of a building. The parameters to the constructor should be the building s width and height. Each building should be colored black and have a few random windows colored yellow. Create an applet that draws a random skyline of buildings.

Really- you have no restrictions. Just remember- if you feel that something is too repetitive or too hard- there is probably an easier way to do it. One way to make it easier for these
One way to make it easier for these problems is to use some sort of loop.

Here are some methods to refresh your memory and can help with these problems..

void drawOval (int x- int y- int width- int height)

void fillOval (int x- int y- int width- int height)

void drawLine (int x1- int y1- int x2- int y2)

void drawRect (int x- int y- int width- int height)

void fillRect (int x- int y- int width- int height)

I need any solutions anyone can give me to javabat.com. I have been having a difficult time in my APCS class- and if I complete a bunch of these I can earn some extra credit. I have already been working feverishly to complete as many as I can- but as I said- my java skills are lousy. Thanks so much in advance!

This is one of those days

you dont think the multiple Java Chillers with double espresso boost had anything to do with it do you?

my cat wont even listen to me at this point- he just rolls his eyes and farts when I start talking to him

does anyone know of a good FREE web site that teaches an easy to understand lesson of computer programing in either java or preferably C++.

i m doing my engineering 4th sem.. cse
n during my training session which one ll be for me

Any help you can give- commands to use to draw the board- how to implement the different squares where everything moves etc..... Thanks for your time.

I wanted to know if these fishes will be OK with a 20 gallon tank. The tank has the eclipse 2 filter with heater and everything.

4 dwarf puffer fishes
3 Otocinclus.

Ofcourse it will be heavily planted. Any recommendations for plants? I read that java moss is good for the puffers.
how can you sex the puffers if bought as juveniles.

I m making a java program where I have to write to a file- after reading from an input file. When I try to run it- it seems to not write most of the lines to the output file. When I try printing to the screen instead- it works perfectly.

Here s some of the code (some bits left out):

input = new FileInputStream(args[0]);
DataInputStream in = new DataInputStream(input);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String line;

while ((line = br.readLine()) != null) {
if(args.length == 2) {
FileOutputStream output = new FileOutputStream(args[1]);
printOutputFile(valid- type- line- output);
}
else{
printOutputScreen(valid- type- line);
}
}

public static void printOutputFile(boolean valid- String type- String line- FileOutputStream output) {
if(valid == true)
new PrintStream(output).print(line + " asdf");
else
new PrintStream(output).print(line + "blah");
}

Everything else is working. Help please!
PS. Yahoo cut off my print line but it s right.

I just bought the LG KG195. The phone is awesome. Problem is- where do I find stufff to pimp it out with for free. Stuff like themes- java games- tones- images- applications- etc- but all for free? Please give me the websites ASAP. Thanks a lot.

I want to shows "Enter student name:" depend on the keyboard of numScores that i put. ( There s error in s [counter] = (float)keyboard.nextDouble(); )
I also want to list all the name that i put in enter student name
How should I change in my program?

import java.util.Scanner;

public class ClassRosterOneClass
{
public static void main(String args[])
{
Scanner keyboard = new Scanner(System.in);
float scores[];
int counter-numScores-option;
String s;

System.out.println("Welcome to the class roster program");
System.out.print("How many student are in the class? ");
numScores = keyboard.nextInt();
scores = new float[numScores];

// read in the scores- place in gradebook
for(counter = 0; counter < numScores; counter++)
System.out.print("Enter student name: ");
s [counter] = (float)keyboard.nextDouble();
System.out.println("What would you like to do next?");
System.out.print("(0: List all student name:");

option = keyboard.nextInt();
switch(option

I HAD TRIED TO WATCH VIDEOS ON YOUTUBE WITH OPERA MINI IN MY Z550i. BUT IT SAYS that either ur java script is turned off....
suggest me what shuld i do???

Tuesday, May 27, 2008

I have downloaded the correct updated Java and checked with Java to make sure my jave is working corrected. I have enabled everything by java help guidlines. I have Windows XP SP2. Now- what is wrong? Yahoo applets still will not work. I am having to play my games on other websites instead of yahoo because yahoo is the only website that will not let me load the applets. What is wrong with yahoo?

This is my code

public class Main {


public static void main(String[] args) {

Connection myConnection;

System.out.println("Sample db connectivity using MySQL and netbeans");


try{

Class.forName("com.mysql.jdbc.Driver");
myConnection=DriverManager.getConnection(
"jdbc:mysql://localhost:3306/sample"-"nbenavidez"-"password"
);
}
catch(Exception e){
System.out.println("Failed to get connection - This is BSSSSS");
e.printStackTrace();
}



}

}
the error :

Failed to get connection - This is BSSSSS
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at dbsample.Main.main(Main.java:28)
I have the connector in place (the jar file) and it does compile fine also

which allows you to add and remove peoples details- such as their names- phone numbers- and addresses?
if you d rather you can send my an email- which is trevman75@yahoo.com

I need a good place where I can find source for compression algorithms in JAVA (for Huffman- LZV- Arithmetic- universal...)

I cannot view some things on web pages- most I can though. Have all current upgrades and flash player- java- shockwave players all working fine. Seems to be HTML error and have tried to change the editor- but didn t help. Happens with IE and Mozilla Foxfire.

Why do I get an error message saying I can t connect to server when I try to join a game room?

The message says:
Unable to connect to server.
One of four things could have caused this:
1)You are behind a firewall
2)You are not connected to the internet
3)The game server is down.
4)You have a stale page in your cache

I have taken down all firewalls and cleared my cache and I still can t play any games because I can t join a room. My internet connection is fine and the server isn t down because other people are in the rooms.

I m trying to play Yahoo Dominoes.

It s been doing this for a long time.

And I have java.

Some information on this puzzling phrase would be very helpful. Thanks!

I know that most of the little minigames you play on addicting games and other free game websites are programmed in flash.

I know the basics of java ( I can program pong- simulation games- ect). I took 1 year (about to be done) of computer science and I am going on to AP compsci.

Is there somewere I can get started in flash; and is it similar to java. In addition to that- if you know anything else about flash I am open to (tips- experiences- ect) Thanks!

coz i neeeed it.

I have to write a java program that prompts to input the elapsed time for an event in hours- minutes- and seconds. The program then outputs the elapsed time in seconds. please i really need help.

I have accessed webkinz from another computer- Im trying to access it from my laptop and it wont bring up the login page- it says that it has errors on the page. My computer has adobe and java installed on it. Does anyone know if I need something else..

want to become a computer technician. I have been searching and searching online to find out what major do I take to become a computer technician but I am bedeviled and foiled. I live in NJ by the way. Some colleges offer a major in Information Technology while others offer a major in Information Systems and some both. But which do I chose. After researching the major Information Technology I found out a lot of the courses are math like calculius- algebra- C+- Java. I have completly no idea why I need to learn C+- Java- and other coding things just to repair a computer. By the way I am reading it right it says Information Technology and not Computer Science.

Looking at Devry-

# Computer Information Systems (Major)

(Concentrations)
* Business/Management
* Computer Forensics
* Database Management
* Information Systems Security
* Systems Analysis and Integration
* Web Development and Administration

WHAT DO I CHOSE TO MAJOR IN TO BE A PC TECHNICIAN?
I also am aware about the A+ Certification- but I want a degree...

So basically- what do I chose to become a computer technician Information Technology or Information Systems or is there another major I don t know about? I don t want to computer program or be involved with any coding just in the repairing field- fixing computers.

Thank you. My education is on the line- all help is much appreciated

I want to become a computer technician. I have been searching and searching online to find out what major do I take to become a computer technician but I am bedeviled and foiled. I live in NJ by the way. Some colleges offer a major in Information Technology while others offer a major in Information Systems and some both. But which do I chose. After researching the major Information Technology I found out a lot of the courses are math like calculius- algebra- C+- Java. I have completly no idea why I need to learn C+- Java- and other coding things just to repair a computer. By the way I am reading it right it says Information Technology and not Computer Science.

Looking at Devry-

# Computer Information Systems (Major)

(Concentrations)
* Business/Management
* Computer Forensics
* Database Management
* Information Systems Security
* Systems Analysis and Integration
* Web Development and Administration

WHAT DO I CHOSE TO MAJOR IN TO BE A PC TECHNICIAN?
I also am aware about the A+ Certification- but I want a degree...
So basically- what do I chose to become a computer technician Information Technology or Information Systems? I don t want to computer program or be involved with any coding just in the repairing field- fixing computers.

Thank you. My education is on the line- all help is much appreciated

Can anybody help me?

I had buy Motorola W270 mobile. I want to install some java games. Kindly provide or suggest the installation software and installation procedure(Detailed - How to install).

For example- my first array is created by

int [] first = {2-3-5-8-13};

How do I take the second and fourth items from this array to create the new array {3-8}?

its driving me nuts i dont know how to turn it on i dont even see a program called that on here LOL someone help me out

i m writing a program for java using jcreator and i dont know how to import .wav files into the program... can someone help me please?
10 pts!
maggie- me and melanie are doing the Bellagio hotel and having a limo drive across the screen with a jpg of our heads out the top of the limo- and if we finish early we are gonna attempt to do the water fountain but that will be superrrr hard!

Can t get videos to play on youtube in Mozilla Firefox?.. java in on and have adobe download. Still no good?? any ideas?

I m creating a small site in that i want to display random text for a link. i.e. diff. text when ever he opens the page.
Can any plz. Give me code for creating such link either using java script or html code.

I m creating a small site in that i want to display random text for a link. i.e. diff. text when ever he opens the page.
Can any plz. Give me code for creating such link either using java script or html code.

My wife andI have trouble getting into Yahoo games. It might have something to do with the firewall or not. Do you have any suggestions to make it work? Is there a program I could open a portal for to make it work? I know Java now has a portal.

i m gettin "exception in thread main java.lang.NoClassDefinitionFounderror " during run time if i run the old programs i already got output once..what must be the problem?i uninstalled and installed the software..yet no use...please help..

according to 1 of its attributes state (which is an int value). how would this method be designed? which has no argument and returns no value.

Monday, May 26, 2008

lol I just asked a question about getting firefox like will anything bad happen if I download while I stll have IE.Well one reason im getting rid of IE is because everytime I click on a link of any kind that opens a new window.Its blank.Like just white.

Java adobe my entire computer is up to date.Ive tried finding out whats wrong but no one seems to know.Its about time I get firefox anyways.But when the download box comes up.Guess what.Its blank...stupi internet explorer.Anyone know some other wat I can get FireFox?Or how to fix this problem.Thanks.

i have motorola l6 mobile phone.i connected it to my pc via datacable through motorola phone tools but i could not download games from pc.i came to know there s java app loader for games download. should i install java app loader for this. will u help me to solve this problem?

hi- i created java application in netbeans- so i created jar file of that project- i need to create link for this jar file in the webpage. is it possible to link .jar file and jsp(since the webpage design through jsp)?

suggestions welcome
thanks in advance

Hi all

simply - is there any java script for delaying hover effects ?

i need to control the time befor the hover effects take action .

thank u

I m running Vista Home 32-bit. Youtube videos just sit on the loading screen and never load! No video OR audio.

I have uninstalled / reinstalled flash (and did the FlashUtil9f update)
I also have the latest version of Java 1.6_06 installed and they still do not load!

I have my older computer running and videos DO WORK on that still so I know it has nothing to do with YouTube s servers being busy.

Is there some settings I can tweak or anything else I need to download for it to work? Any help would be greatly appreciated!
So I installed Firefox -- it automatically updated Flash when I went to Youtube and It worked fine! This took me no longer than 5 minutes. TYVM!

I know that the iPhone app language is Java- does anybody know if the iPhone can run C++ applications. If it can t does anybody know if you can convert Java to C++? Is it possible?
Please help!

whats the difference between java- c++- css and html?

i found a malicious site that attempts to breach firefoxs security- with i think a temporary internet trojan- the old fashion gnaa last measure live with its mirror sites. that pops up malicios sites and attempts to run java- aim- email and all that.

the malicious site is lbn.threat.tv/example of course "example" being replaced with anything.

the domain threat.tv alone doesnt seem like a bad site but adding lbn to it does. i cannot google the offending site anywhere- so i wanted to announce it where i thoink it would be best suitable- and i guess it is best for anyone who reads this to tell atleast 1 other person.

note i dont think i have a virus from it- but GNAA is a group of internet terrorists who will stop at nothing untill they infect your computer.

i cant get any for turing all of them are coming up to java.. but i need a turing code for the game craps

Hey all. I have to do a final project for my first year java class. Only problem is i don t know what to do! The only major requirement is that it must incorporate inheritance in some way. Any ideas?

I m in a java class- and i swear
my teacher doesn t teach us anything.

i m not sure how to set up this program.

Palindrome:
user inputs a word.
program determines if it is a Palindrome (a word that is spelt the same forwards and backwards ex mom racecar)

i actually did this program and it worked-
but he said we wernt aloud to just reverse
the word and use compareto- thats what i did.

so i have to check each letter.
any ideas?

it would be a huge help- thanks.

I have tried over 100 proxy servers.
The majority doesn’t support Java script and cannot use Y! mail- even if I can enter my mailbox via them.

One or two could be used to create a user profile- enter my mailbox (only in Y! Beta mail) and even read a message.
BUT I cannot compose. It simply doesn’t want to work.

Help please - I’m getting a bit agitated!
Need the name of a proxy server which will work with all these!
Thanks
Sorry- that one isn t anonymous and doesnt work with Y!. Thanks anyway.

here is the question. i have done half of it.

a company has 4 sales persons- who sell 5 different products- once a day each salesperson passes a slip for each product sold.
the slip contains: sales person no.- product no.- total cash value for the products sold that day. the salespersons passes between (0 and 5) slips per day. Assume htat the information from the last slips for last month (30) is available. write a program that will read all the information f and summarize ie.- total sales by sales person by product. all total sales should be stored in 2-dimensional sales.

after processing all the information on last month- displaying the result in tabular with each column representing a particular salesperson and each row representing a particular product.

gross total each row to get the total sales of each product for last month. gross total each column to get the total sales per salesperson for last month.

(the part i cant do is getting the gross total and tabulating them).

here is the code so far.

import java.io.*;
public class SalesPerson {
int number;
Slip slips[];
Slip current;
InputStreamReader isr;
BufferedReader stdin;

public SalesPerson(int number_in){
number = number_in;
slips = new Slip[30];
isr = new InputStreamReader(System.in);
stdin = new BufferedReader(isr);
}


public void read(){
System.out.println("Information for person no. "+number);
System.out.println();
for(int i = 0; i < 3; i++){
System.out.println("Day "+(i+1));
current = new Slip(number);
for(int j = 0; j < 2; j++){
if(j == 0)
System.out.println("Enter product numbers");
else
System.out.println("Enter product cash values");
for(int k = 0; k < 5; k++){
try {
current.products[j][k] = Double.parseDouble(stdin.readLine());
}
catch(NumberFormatException ex) {
System.out.println(ex.getMessage());
}
catch(IOException ex) {
System.out.println(ex.getMessage());
}
}
}
slips[i] = current;
}
}

public void print(){
System.out.println("Information for person no. "+number);
System.out.println();
for(int i = 0; i < 3; i++){
current = slips[i];
System.out.println("Day "+(i+1));
for(int j = 0; j < 2; j++){
if(j == 0)
System.out.println("Product numbers");
else
System.out.println("Product cash values");
for(int k = 0; k < 5; k++){
System.out.print(current.products[j][k]+" ");

}
System.out.println();
}
System.out.println();
}
}

}


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
import java.io.*;
public class Slip {
int personNum;
double products[][];

public Slip(int pn) {
personNum = pn;
products = new double[2][5];
}
}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

import java.io.*;
public class Test1 {
public static SalesPerson person1- person2- person3- person4;

public Test1(){
person1 = new SalesPerson(1);
person2 = new SalesPerson(2);
}
public static void main(String[] args){
Test1 test1 = new Test1();
person1.read();
person1.print();
}

}
actually thats the whole question as it was given- and am required to use a 2d-array. my problem is- from that code- i need to get the total sales per person each day- then total sales per person per month. or if you can give the whole problem another approach without using my code. though 2d-array is required. am actually new to java (one month old). i ll appreciate your help.

I have tried over 100 proxy servers.
The majority doesn’t support Java script and cannot use Y! mail- even if I can enter my mailbox via them.

One or two could be used to create a user profile- enter my mailbox (only in Y! Beta mail) and even read a message.
BUT I cannot compose. It simply doesn’t want to work.

Help please - I’m getting a bit agitated!
Need the name of a proxy server which will work with all these!
Thanks
Any experience with Y! though?
And yes I understand the security risk- but no prob
Sorry- none of those are anonymous proxies and don t work. Thanks anyway.

i tried to open the jad files with jar. and jad. in other files.i already activated my java but still i can t open it.Any helps!?PLEASE!i so nervous to check my crash msg!weather she have a bf or not?

i have been trying to download java but it keeps on saying that it cant download with my current internet connections- i have widows xp- and have downloaded it before on the same settings- but was having trouble with it and was advised to uninstall

Hello :) My windows has just been reinstalled and now when i try to play chess on yahoo games- it gives this message: "You have an old version of the client on your cache. You will need to restart your browser. Manually clearing your browser s cache should fix the problem". I use Mozilla Firefox and Internet Explorer- but there is no difference. I am using the same versions on my older PC and the work fine. I have installed Flash Player and Java. Please if anyone has some idea how it could be fixed- let s help.
Thanks.

please tell abt some site frm which i can dwnload it and other free java softwares for my samsung j600

whenever i try to run a java game it says "invalid version"-
if a software is required - then please tell a site to download it.
thanx

I have internet explorer 7. When i go to certain web pages- hotmail- google maps- etc the screen comes up blank however i know that it has loaded the site because the status bar at the bottom of the page does exactly what it should. I have tried updating java but it didn t help- i ve tried setting my security settings to low too. Any ideas? It seems to be a problem with images but i m not sure.

Hi guys i m not having much knowledge in html script-
I want to create random text from list at random to a same link in html source can use java script in this. Can any please give me code for this-
adv. Thanx

im trying to make a bubble sort function- that will set the values in any size array from lowest(element 0) to highest value. it should do the following- compare value of index 0 with 1- if index 1 value is lower swap the values- then index value 1 compare to index value 2- if index value 2 is lower- then swap the values. compare index value 2 with index value 3 and so on. i cant seem to output any results with this code on nestcape. i get a warning message "a sript on this page may be busy- or it may have stopped responding. you can stop the script now or continue to see if the script will complete".
var arrayToSort = [9- 6- 5- 4- 3]
bubbleSort(arrayToSort);

function bubbleSort(arrayToSort)
{
for (var count = 0; count < arrayToSort.length; count = count++)
{
for (var index = 1; index < arrayToSort.length; index = index++)
{
if (arrayToSort[count] > arrayToSort[index])
{
var hold = arrayToSort[index];
arrayToSort[index] = arrayToSort[count];
arrayToSort[count] = hold;
}
}
}
return arrayToSort;

};

Sunday, May 25, 2008

When a student passes BTech or MCA he will get a job in an MNC like Satyam-Wipro -TCS etc
Then he will be given training on related skills like java .net etc
Then what is the need of computer institutes?

hopefully cheap- and java- or javascript .
java isn t a language to start with even the easier version of it javascript is to hard.

Hey can anybody help me do this? Using Xcode.

12. Write a program- "Dice" to simulate two dice being thrown. The program should work out a random value of 1 to 6 for each dice- and use a switch structure to display a graphic of the dice- created using a series of System.out.println(); statements. The output should contain the two graphics as well as the total of the two dice for the throw. Using Xcode.

i click on my mail and it takes me to a blank page containing my account- yahoo- my yahoo and trouble logging in? links.
then it gives me three messages;two are the same saying what my emails contain...then it says that i am unable to load the javascripts of the email

I haven t played in over a week now- and I have no idea why it s stopped working. Whenever I try to access the website- it always says page cannot be displayed. I tried to go to it through google- and even miniclip- but its stopped working. For some reason- runescape wikia isn t working either. Also- my other laptop isn t working for runescape either- but runescape wikia is working for it for some reason. I tried re-configuring the security measures on my computer through the tools menu and then to the internet options. I changed my settings to accept anything from Active X and Java- but still no luck. I tried downloading a more updated version of Java- but it yielded no results. Does anyone else know a solution to my problem? By the way- I play on my dad s work laptops. He told me he thought that maybe his company bloacked the website or something. I have never broken any rules on runescape- so I dont think they would block my ip address. Any1 who flames this blog- get a life too!!!!!

Why do I get an error message saying I can t connect to server when I try to join a game room?

The message says:
Unable to connect to server.
One of four things could have caused this:
1)You are behind a firewall
2)You are not connected to the internet
3)The game server is down.
4)You have a stale page in your cache

I have taken down all firewalls and cleared my cache and I still can t play any games because I can t join a room. My internet connection is fine and the server isn t down because other people are in the rooms.

I m trying to play Yahoo Dominoes.

It s been doing this for a long time.

And I have java.

hey well i had a update check and it said you can update java for mac os x. What does java do for my computer?
also how do you un instal a program or a application on my mac os x 10.4?

Write a program that keeps track of a class roster and performs various functions based on it. This roster will hold the names of the students- but no scores. We want to perform some functions- like searching for a student by first name- searching for a student by last name- and listing the entire class list.
Now- modify the program to be in two classes. Organize your code similarly to the class example from Friday- May 16th. All I/O (input / output - printing to the screen- reading from the keyboard) must be performed in the main class (UseClassRoster)- and all storage of the roster as well as computation on the roster must be done in the other class (ClassRoster). Be very careful about choosing return types and input parameters.

well- I heard this million of times...
Linux beats the crap out of Windows.
I m a Java programmer but also some sort of gamer.
I use my computer for programming- movies- music- downloading....cooking :D
So is it really the right step to switch to Linux specially with all the hype about Fedora 9??
I didn t mean particularly "cool".
I mean what should I be getting more if I switch to Linux?

ok- here is my code. it is a basic String encryption. I am wanting to write a separate program that will brute force the encrypted string until is gets it right. like trying every combination of letters. aaa- aab-aac-aad etc.

can anyone help me?

import Java.io.*;


public class NewEncryption
{
public static String encrypt(String origText)
{
if (origText == null)
return "Incorrect Text. Try Again";
String passcode = "";
for(int k =0- k < origText.length(); k++)
{
char x = origText.charAt(k);

if (x >= a && x <= m )
x += 13;
else if (x >= n && x <= z )
x -= 13;
else if (x >= A && x <= M )
x += 13;
else if (x >= N && x <= Z )
x -= 13;
passcode += x;
}
return passcode;
}
public static void main(String [] args)
throws IOException {

String input = "";


if (args.length <= 3) {
int argNumber = 0;
while (argNumber < args.length) {
if ("-e".equals(args[argNumber])) {
argNumber ++;
input = args[argNumber];
argNumber ++;
}
else if ("-h".equals(args[argNumber])) {
System.err.println(usage());
System.exit(0);
}
else {
System.err.println("Error: unexpected argument " + args[argNumber]);
System.err.println(usage());
System.exit(1);
}
}

}
else {
System.err.println("Error: Too many arguments.\n" + usage());
System.exit(1);
}


if (input.length() == 0) {
BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));

String s;
while ((s = in.readLine()) != null) {
input += s + "\n";
}

}
System.out.println(encode(input));


System.exit(0);


}


private static String usage() {
return "Usage: java -jar rot13.jar [-h] [-e \"text to be encoded\"] [< plaintext] [> ciphertext]\n" +
"where arguments are:\n" +
"-e encode text on the command line\n" +
"-h print this message";
}

}

in java

I don t have Java downloaded. Are there any good chat sites without Java?

My computer had an update for Java- I finally got around to updating it today.When updating Spysweeper poped up and said a BHO wants to run. Accept only if you trust it. Its Java so I trust it and I accepted it. Will this cause me any harm? I am asking this because I know some BHO s can be harmful. I had no problems afterward-except windows stopped responding-but it is ok after restarting.

how to automate the task of searching a particular text string on internet and saving the text before and after untill a space-break is encountered and saving this info in a database.tell me which platform will best suit my need i.e.java or .net-database i.e.Access-or simple asp or HTML.I could use theories-materials or if u could send a code i will be really thankful.
e-mail : waycool_de@yahoo.com

I put is next to my 10 gallon tank w/ the lights hit the bowl- will it grow if i put a pinch of flakes everyday? do i need to have air and filtration?
I also put a decoration in there and i tied it up w/ some rubber bands how fast would it attach to it?
How often should i change the water and how much %?

i have java and when i go in to command prompt (CMD) it says java is not recognized as a external or internal program but i have java what should i do? ive got windows xp ive downloaed java lodes of times and still it says "java is not recognized as a external or internal program"

When I was searching online to gather some information for my Java training....I found some new words which got me really confused....

Could someone give me a brief explanation on the differences between....(IT Field)....
BOOTCAMP
WORKSHOP
LIVE PROJECTS - I hope....you would be put to work under an ongoing project...

I tried my best to understand each one of them but still somewhat confused....I would appreciate any help....

When I was searching online to gather some information for my Java training....I found some new words which got me really confused....

Could someone give me a brief explanation on the differences between....(IT Field)....
BOOTCAMP
WORKSHOP
LIVE PROJECTS - I hope....you would be put to work under an ongoing project...

I tried my best to understand each one of them but still somewhat confused....I would appreciate any help....

I m making a java program and I m having problems with one of the methods..

Basically I call this method- and if the condition is true then it will return a string. If it s not true- I want it to return nothing and continue calling the other methods.

I m not sure how to do that because I have to declare it as either void or a String.. here is the code:


public static String validityCheck(int x- int y- int z)
{
String valid = new String();

if(condition here)
{
valid = "This is not a valid";
}
return(valid);
}

But I don t think that s right...

In my main function I end up printing that valid string- so if the condition is false then it returns nothing- and it just prints an empty line (instead of nothing at all- which is what I want).

Is there any way I can make main print the valid string ONLY if that condition was true? Without putting the whole method into main instead?

Thanks in advance!

someone i know keeps buying internet phones.... and they never work... all the sites say you have to make an account to prove your age like u tube- and the ones that do let you in say Error downloading page.... also it says something about java settings- and the settings page is empty.. with nothing filled in... why not?? i dont like paying for the internet so i have never tried it on my phone... so i dont know if i would have the same problem... are all phones suopsed to do this or does my friend just keep getting broken ones??

i have a vague idea of how to read from a txtfile but not how to put the values in a textfield in java it would probably be
firstTextfiled.setText(value);
i wopuld like to know what the setText metho is in C#.
Please help.

This is weird but I am able to click on links- select items from drop-down menus- etc anywhere on my screen except the middle. This is really frustrating as that s where most windows pop up asking you to click OK/Cancel- etc and I end up having to tab and select via the keyboard which doesn t even help if it s one of those dot things you need to select (ie. I m trying to book flights but am unable to click on the flight I want).

Any idea of why this is happening and how I can fix it? I am using Vista- have re-downloaded Java (as suggested by a friend)- changed mice....everything I can think of- but nothing is working. By the way- I m using a laptop and this has been happening for over a week and occurs when using spreadsheets- it occurs with most other applications including the internet- word processor- My Computer...everything.

Thanks in advance for any advice or help as this is driving me nutso!
Hey guys. Nope- the cursor doesn t change when in the middle of the screen and changing from Windows Aero makes no difference either! :(
Nah- not the battery unfortunately...have tried that- as well as corded mice...didn t work

Saturday, May 24, 2008

in phones- what is the feature called when ur fone can read .jar and .jad files. at first i was told its called "java enabled" but when i downloaded games and apps to my sprint lg rumor none of them worked. how do i know if the phone i buy can read those files

When I open MySpiffy my note pad opens- I can write and save java documents here.
I need to know from there what I should do to create java- applets- japplets- ect. I do get class files in my browser- depending on what I save the file class as. I can t execute any of the files what is going on?
I am using java SDK 6 - Explorer- and notepad.

If no one has an answer this way I have been writing java- with eclipse- but do not know how to execute these programs in Windows Explorer.

I am trying to run MS DOS text editor from command prompt -to edit my java program but i don t which commands i have to use to open the MS DOS editor.

Does anyone know?
I am using windows XP

I am trying to run MS DOS text editor from command prompt -to edit my java program but i don t which commands i have to use to open the MS DOS editor.

Does anyone know?

help i have had my cobalt blue cichlid for about 6 mths now. most recently it has developed irregular blacky brown dots around its mouth. this has also happened to my red zebra that i bought from the same store at the same store. what is it? will it kill my fish? they seem healthy and eat well. i have a 4ft tank with lots of lava rock and a java fern with 2 bristlenoses. the ph is 7.8- 0ammonia- 0nitrite and 25ppm nitrate. i feed it a variety of spirulina- flakes- pellets and peas. some help would be nice. ps. my red zebra is breeding as well but i really need to no wat the black dots are

I have a Java project where I must use a generic data structure. I was thinking of using ArrayList- but I have no idea what kind of class I should write. In the past I ve done simple bank account systems and song libraries- but I m looking for something different. Any ideas?

I just got some Petite Anubias and Some Philippine Java Ferns that I ordered online- they have leaves on them and I am attaching them to rocks with cotton string should I just rinse them and add then to my tank or shoudl I remove leaves?
when I opened the package the Petite Anubias leaves were slimy and fell off.. are they still ok ?

Sometimes when I am playing music using Media Player- my computer will slow right down- and the music will be skippy and choppy. My computer will often be unresponsive until the song has finished playing- after which it speeds up again. It doesn t happen way too often- but it is annoying nonetheless. It also happens more often when I am using flash/java/shockwave apps. Any ideas to why this is happening? Thanks! :D
I have used Microsoft s RAM Testing Utility. According to the complete/extended test- my RAM is fine- and it is not a hardware problem. Is this maybe an issue of not having enough RAM (currently 512MB on WinXP). I have also heard that Celeron processors are not the best processors in the world- so could this be a problem as well? Thanks again! :D

To be able to be proficient at Java-

(not JavaScript).

How good do I have to be at maths/math. Do I have to be amazing at mathematics ?

Hi!

I m working on a java based chat program. It has a server and a client. The server and client communicate through sockets. The thing is- that if I put the server behind a proxy server- the client can t reach it...
I m sure it s not a firewall issue and it s not about sockets being already bound.
And besides these- I don t know how to verify if the server is actually behind a proxy or not...
If you can- please post or e-mail a simple example for a server- that works behind a proxy server!
Please help! :-)

Thanks in advance!
To Colanth:

There is absolutely no firewall involved... No windows firewall- no ZoneAlarm- nothing.

The server is simply behind a proxy server.

Hi- I have some good experience in programming with Java- actually I love programming so much :)
I m also planning to take the SCJP (sun certified java programmer) certificate soon.
The question is would it be really cool to step into the networking world and plan on taking the CCNA(cisco certified network associate)?
I mean would it be an advantage for me when I apply for a Job for example??
Or- should I just step further and further in Java devoting my energy into it- trying to gain more experience and planning on higher certification?

summary : is it good for anyone to branch his/her experience in IT or just concentrate in one field?

Please- advise me :)
Thank you.

I am using netbeans IDE. I have put a a button on the jFrame and set an icon for it using its properties.

How do I change the icon image when the event is generated when the button is pressed?

Please answer ASAP.

Thanks to those who answer the question.

I am using a JFileChooser to save the file

And- if so- how?

I am looking for a forum solution for my site that I can install. I don t want it in php. I like the look of the java/html forums I come across- but have no Idea what system they are using. Can anyone guide me where I can find a open source solution?

from lowest to highest using a method. im thinking along the lines of this- but it doesn t put the array in order for some reason. i also want to retrun the number of swaps needed. please help.
function selectionSort(arrayToSort)
var arrayLength [2- 5- 8- 5- 9- 3- 6- 7- 3];
arrayLength = arrayToSort.length;
var lowestValue = 0;
var lowestIndex = 0;
var numberOfSwaps = 0;

for(var element = 0; element < arrayLength -1; element = element + 1)
{

lowestValue = arrayToSort[element];
lowestIndex = element;
for(var nextElement = element + 1; nextElement < arrayLength; nextElement = nextElement + 1)
{

if(arrayToSort[nextElement] < lowestValue)
{
lowestValue = arrayToSort[nextElement];
lowestIndex = nextElement;
}
}
if(lowestIndex > element)
{
numberOfSwaps = numberOfSwaps + 1;
}

}


window.alert( The number of swaps to sort the array was: + numberOfSwaps);

return arrayToSort;
};

difference of adobe flash and java software in computer?

NB. I can t install any additional software onto the PC I m using- works networked.

class A
{
void set()
{
System.out.println("A s method");
}
}
class C extends A
{
}
class D extends A
{
}
class ins
{
public static void main(String[] args)
{
A a=new A();
//System.out.println(a);
C c=new C();
D d=new D();
a=d;
a.set();
if(a instanceof D)
{
System.out.println(a);
}
if(a instanceof C)
System.out.println("Hello");
}
}
I know that statements a=d and a=c and instanceof statements are resolved at runtime.I want to ask that the statement a.set(); gets resolved at compile time or runtime.At runtime after a=d - a refers to object of D and class D has no set() method .Only A has set method.Still a.set(); gets executed.Why?

Write the codes that print out the following 2 statements:

Student: "Sir- what are your favourite characters?"
Teacher: "There are 3 that I like; \ - " - and . "

--------------
Hmm- anyone knows what are the codes for this question? Do we have to apply the Scanner class? (that is- import java.util.Scanner)?

Thank you.

well if possible do specify course details and fee structure.
I would be very thankful to u !!

Friday, May 23, 2008

Which browser for Windows Mobile 5 PDA comes closest to displaying all of the Web s contest including Javascript- Java- Flash- CSS stylesheets- etc.. etc..? The built-in Pocket Internet Explorer doesn t do any of this and I need an upgrade
Note for devilmay: I explicitly specified that IE Mobile is the browser that I do not want.
Ry Jones- though your advice is well-intentioned- your proposal that I replace my Windows Mobile device with my Iphone is irrelevant to this question. Yes I am quite aware of the fact that Safari has the best mobile browser on the market- but that doesn t change that I am looking for a browser for Windows Mobile.

I recently upgraded to Norton 2008 and I m not sure whether this has altered the browser settings

hiiiiiiiii guys...
i m a 2007 batch CSE hmmm geek or nerd doesnt suit me... techy person:).. tat s better...
I m working as a trainee in a Cmm lvl5 company and i wanna switch over to SAP...Can U guys plz suggest as to wat module should i get into ??? my area of interests are java- HTML.Also i need complete details rgarding SAP training and 100% assured placements as to which institute provide in bangalore...fee struc... duration..Also i d like to know if its worth doing SAP... would be helpful if anyone has already done at some place and give feedback....Plz temme ASAP cuz i m plannin to shift to bangalore...
Thank U so much in advance...

My friend gave me a really pretty Emani Minerals Java- Java eyeshadow- and I wasn t sure how to wear it...actually- I m not really a make up expert- so i don t know how to wear any eyeshadow- but i really want to wear this one. Help?

There is no documentation of the official netbeans site for setting up my compiler. I want to use NetBeans because of it s versatility. I have installed NetBeans and the compilers- however when I start NetBeans I am told I have no compilers. This is very annoying and I need it fixing!!!

Ok- to start off- i Google search java runtime enviroment- click the first one( url is http://www.java.com/en/download/index.jsp) click free java download- click it again on the next page that pops up and a box comes up. it says opening jxpiinstall.exe would you like to save this file- i save it and the download box comes up- i click open and the warning box comes about the malicious programs i click ok- then after that a box pops up and disappears.

I am using Mozilla Firefox v 2.0 if that matters........
I have tried on Internet Explorer and At&t browser- neither has worked

If nobody can help- can someone at least reccomend a reference? thanks.

I m working with the tutorial from http://nutchtube.blogspot.com/2008/02/latest-step-by-step-installation-guide.html

I m trying to install nutch- and when i run the crawler- i get an error message: line 15: syntax error near unexpected token $ in\r line 15: case uname in"

here is the code
# NUTCH_OPTS Extra Java runtime options.
#
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac

# resolve links - $0 may be a softlink
THIS="$0"
while [ -h "$THIS" ]; do
ls=`ls -ld "$THIS"`
link=`expr "$ls" : .*-> \(.*\)$ `
if expr "$link" : .*/.* > /dev/null; then
THIS="$link"
else
THIS=`dirname "$THIS"`/"$link"
fi
done

# if no args specified- show usage
#line 15
#if [ $# = 0 ]; then
echo "Usage: nutch COMMAND"
echo "where COMMAND is one of:"
echo " crawl one-step crawler for int

I

im working on my bachelor s degree in computer science. i want to be a software engineer. i currently know visual basic- html- and am gonna learn java when the next semester starts. its currently summer and im in the process of teaching myself c++. what are some other essential programming languages that would benefit me by knowing them.

K- everytime i go to silab/mopar i get a blank screen with a little red X in the corner..idk if i need new java or if i need something else...

P.S if i need to download something plz leave a link to it =D

* Configure the compiler to write output classes to <protege_install_dir>/plugins (replacing protege_install_dir with your Protégé installation directory).
* Pass the JVM the following parameter -Dprotege.dir=<protege_install_dir>.

lemme start from the basics. I am a student from India & m doing a basic developers course from a reputed institute [NIIT] that includes C- C++- C#- Java. I might be doing .NET after completion of this course too.
I am interested in doing IT security as a career. so i wud like to get some information about it
1) What are the basics that i must know?
2) what are the courses to qualify as IT security person?
3) can i complete the course from ny computer institute [in this case its NIIT- its reputed in India- but am unaware bout other countries]- or govt. recognised institutes only?
4) What is the pay?
5) What is the risk involved in this career??
6) How wud u rate the job satisfaction for a person who loves to be on computers whole day??
7) any other suggestion u wud like to make...

Would like to have detailed information...

I am ready to travel to other countries for completion of the course

Thank You...

So well I have a 29 gallon tank w/ an external whisper 30-55 gallon power filter- heater that keeps the water between 76-78F- a little tuff of live java moss on a piece of driftwood- a ton of plastic/silk plants- and 3 homemade rock hideouts. Now for the stocking- I have
-10 female bettas
-1 female (I think- I ve had her for @ least 8 months) dwarf bristlenose pleco
-4 bronze corydoras
-possibly 2 ghost shrimp (i haven t seen them for awhile but they are great hiders)

I change 1/4 of the water every other weekend. So I was wondering how are my stalking levels? Am I overstocked or understocked? If understocked- what could I add to the tank?
Some species I have been thinking about are
-DAF (dwarf african frogs)
-Guppies (or would my bettas pick on them?)
-Balloon mollies (I used to have a gorgeous mail sailfin- but wouldn t the salt irritate the cories?)
-Platys
-More female bettas
Sorry about all the questions!!
Thanks!!! =D
Sorry I made a few mistakes while typing. 1st is the water temp is around 78-82F- 2nd is I change 30 percent of the water weekly- and when I do i use a gravel vacuum

I m a programmer. I got a copy-paste boring job where my brain cells have died and my skills have atrophied from dis-use. Java is up to 6.0 now and we are still using 1.3!!! I m *not* desperate for a job- any job- so i want to include a career objective on my resume to indicate what i want out of my next job.
Please tell me if this looks right at the top of my resume or if it would turn people off- and what i can do to make it more professional or effective.
(professional! ha! a way of saying "help my brain is dying" while making it look like i m not saying anything with any meaning at all- while making it clear to people who read between the lines that what i really mean is "help- my brain is dying!")

CAREER OBJECTIVE

To find someplace where I need to learn new skills- keep up with modern technology- solve problems creatively- or grow in any other direction.

(should i say "to learn new skills- keep..." instead? or that makes it less clear that my brain is dying?)
based on what you all say but the examples you give(!) i did what i tell people to do too often and used google. based on a career objective page on google and your advice- i now came up with this improvement:
"A position needing the acquisition of new skills- I.T-related research- keeping up with modern technology- solving problems creatively- or any other growth."
Still needs work- but better.

I need to create a JButton in java. I know how to do this- however- I need to display an image as the button- instead of text. How do I do this? I also need to be able to specify the x and y coordinates of the button- as well as its size. Can anyone tell me how to do this?
What is a container- I understand everything else but that. I am a 9th grade student- and this is my first year of java- so the Container thing is the only thing I dont understand!

Thanks!

http://www.giftestor.com
i have a text box in my form where user can write their e-mail address- my requirement is that after clicking submit button the java script use that e-mail address and send my defined text to him(user)

The message says:
Unable to connect to server.
One of four things could have caused this:
1)You are behind a firewall
2)You are not connected to the internet
3)The game server is down.
4)You have a stale page in your cache

I have taken down all firewalls and cleared my cache and I still can t play any games because I can t join a room. My internet connection is fine and the server isn t down because other people are in the rooms.

I m trying to play Yahoo Dominoes.

It s been doing this for a long time.

And I have java.

HI- I am trying to run a private server- and when I open run file it displays "Java is not recognized as a Internal or External Command"- I cannot see the problem since I tried it on my other computer and it works- and they both have the same Java versions. Thanks- Roveliuz
Well- if I said they both have the same Java versions on both computers- Java is present on both arent they?- meaning I do have Java on my computer. In this case if i have to reinstall java should I uninstall the entire thing and reinstall it- and patch up?. Also I edited the compiler.bat file and set it to the location: C:\Program Files\Java\jre1.6.0_05\bin
and it displays: "C:\Program Files\Java\jre1.6.0_05\bin" is not recognized as a internal or external command......

Hi- I Have a Nokia Cellphone (Model: 5610) That support just java softwares- not symbians. I need some new softwares for playing avi & wma formats. tnx

it is a question

I am a architectural/structural engineering major. I plan on taking a computer science course- but am unsure which is best for my major. Which course- Java or C++- is geared towards structural engineering?

A grub is a Critter that burrows from one location to another. A Grub knows how far away it can burrow and randomly chooses the direction in which to burrow. It burrows down from its current location and burrows up at some target location. If the target location is empty or contains a Flower- the Grub moves to this location. If the target location contains any other type of object- the Grub gets stuck underground and dies. You are to implement getMoveLocations below.

public class Grub extends Critter
{
private int maxDistance;
public Grub(int distance)
{
maxDistance = distance;
}

public int getRandomDirection()
{
Int turns = (int) Math.random()*8;
Return Location.NORTH + turns * Location.Half_Right;
}

/** Gets a list of possible locations for the next move. These locations must be valid in the grid of this Grub. Implemented to return all locations in a random direction up to and including the maximum distance that this Grub can borrow.
Postcondition: The state of all actors is unchanged.

public ArrayList<Location>getMoveLocations()
{

(how do i start is from here?)

Thursday, May 22, 2008

does it speed up our internet browser or downloading?

Yahoo Java games will not run under Vista- similar questions have been asked but have been marked as "resolved"- this issue is not resolved.

1. Running 32-bit browser.
2. Latest Java loaded (build 1.6.0_05-b13)
3. Java apps on all other sites work fine.
4. Java console reports the following:

load: class com.yahoo.games.client.chess.ChessNormalApplet not found.
java.lang.ClassNotFoundException: com.yahoo.games.client.chess.ChessNormalApplet
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
<SNIP>

Any solutions found?
l
Running IE 32-bit.
Just solved it. IE 32-bit.

Added *.yahoo.com to trusted sites in IE options. Don t really like this since it leaves a huge security hole. Since it s only Yahoo that has this issue I m thinking some Java code needs to be changed.

Well on myspace when I go to A persons page I cant listen to there song..It says "Hello- you either have JavaScript turned off or an old version of Macromedia s Flash Player. Click here to get the latest flash player. I updated it- When I go to A music band profile page I can listen to there music...But personal pages the player doesnt come up. How can I fix this?
I went there...It was all ready enabled...It was workin fine earlier...Now its bringin that message up on the page where the music player suppose to be. Its weird band profiles work but personal ones dont for some reason.
I went there...It was all ready enabled...It was workin fine earlier...Now its bringin that message up on the page where the music player suppose to be. Its weird band profiles work but personal ones dont for some reason.

class A
{
void get()
{
System.out.println("A s method");
}}
class C extends A{}
class D extends A
{
void set()
{
System.out.println("D s method");
}}
class ins
{
public static void main(String[] args)
{
A a=new A();
System.out.println(a);
B b=new B();
C c=new C();
D d=new D();
a=d;
a=c;
System.out.print(a);
if(a instanceof D)
System.out.print(a);
if(a instanceof A)
System.out.print(d);
if(a instanceof A)
System.out.print(a);
}}
Can a refer to objects of all A-C-D and what does a refer to at compile time and at runtime. As instanceof statements are resolved at runtime-does this mean that a refers to objects of all A-C-D at runtime because all three instanceof statements return true.Is it also true that a refers to only A at compile time.And why dont we get an output for System.out.print(a) after the line a=c?

I want to have a career as a web developer but I have no idea where to start. Do I need a degree to be a web developer? I only have a high school diploma and college isnt for me. I- however know a lot of basic HTML but thats it. I dont know css- java etc. I was thinking of taking a web developing course in college or teaching myself. My question is can I be an intern even though I only have experience with basic HTML and have no degree? What are the requirements for this job? I want to work for a company then eventually start my own web developing company in the future.

i have a list in the form:
item1-item2-item
(separated by comma s only)
i tried to do something like this:
private String listofitems;
private String[] myarray;
listofitems = "item1-item2-item3";
String[] myarray = { listofitems };
but then i call myarray[0] the value i get is null so obviously that don t work...
so what s the simplest way to make this comma-separated list into an array?
Chad: actually if you want to add items to an array you do need to write the [ ] again.

so it is:
String[] array = { "item1"- "item2"- "itemN" };

Help- I need some help. My boss wants me to make a code for him- and i have never made any type of code- He knows that- but wants to challenge me... But- i cnat find what he needs done for help... Alright. We have Notpad docs- with Logs- and there are some with the words at. roim. what ever... and then there are some with out.. there are many lines in these documents as well.. How do I make the code- to read through the docs- and then get rid of the lines that are associated with the .roim. ...? and save the document after the change?... If any hints or starting the code- any and all help will be great! Thanks
In advance.
Druke

I got this compile error- I can t get around!

Main.java:135: cannot find symbol
symbol: method drawImage(java.lang.String-int-int-Main)
location: class java.awt.Graphics
g.drawImage (backimage- 0- 0- this);
^
1 error

What s wrong with my code?
lol i just realised what i did. instead of
Image backimage;
backimage = getImage(getCodeBase()-imgUrlStr);

i did
String backimage;
backimage = imgUrlStr;

thanks Silent for pointing out it was a string.
thanks to other ppl for their help
this question is closed.

Hi-

Every program or website that uses java won t allow me to interact with it no matter what I do. What s going on with this and how can I fix this error? Because I can t use limewire- chatrooms and many other things. They load up but I can t do anything with them- only highlight and not interact so I am really annoyed at the moment. Surely there is a simple solution? I have the latest version of Java- a genuine copy of windows and everything else I can think of- if anyone else has a solution please enlighten me =(
yeah but Java is enabled... this is the problem... the box is checked and still nothing works- resetting it to factory settings doesn t work... i m clueless =(