Monday, May 24, 2010

How do you turn you Java Script on and off on your computer?

I have a compaq presario like 4 yrs old. Desktop. Windows Vista.

How do you turn you Java Script on and off on your computer?
In I.E. - go to 'Tools' - 'Sun Java Console'.
Reply:I use a firefox browser plug in called adblock plus.


It blocks java scripts and flash ads as well as most other online ads.


I wouldn't surf without it.


I am programming minesweeper in java and I need help with the rules?

Sometimes when I click one box with no mine, a bunch of boxes with no mines open like a chain reaction. When and why does this happen?

I am programming minesweeper in java and I need help with the rules?
If the box clicked has no mines in the eight squares surrounding it (would have a '0' if there was a number), there cannot possibly be a mine in any of the squares, so those squares are automatically clicked. The chain reaction occurs when revealing these eight squares cause more would-be '0's to be revealed. If you're programming the game, it is not necessary for this to happen, but instead put a 0 in the box. The auto-clicking is only done to save time in solving.
Reply:hey! you have my avatar!


How to get a job in JAVA Programming?

How can I get a job as a Java Programmer? I have a bachelor's degree in CIS. I have learned how to do Programming in Java. I think myself a beginner in JAVA Programming. Any suggestions?

How to get a job in JAVA Programming?
dice.com

sd cards

How do I get a java game on my phone?

Okay, I downloaded Tetris from a website, and i am trying to put it on my phone via Bluetooth, but it is not working. I downloaded ringtones and wallpapers from the same website, and they worked. How can I get the game to work?

How do I get a java game on my phone?
What do you mean it's not working? Have you tried installing it? Maybe the java game is not compatible with your phone model.


What causes my java program to use so many resources?

The program uses 100 percent of my CPU (an outdated 2 GHz Intel Celeron (not D just celeron)) and a small amount of RAM (10 MB out of my 1GB total). The program is written in java using Microsoft Visual J# .NET. I use visual J# .NET to compile it and then i run it in a cmd window. The program is a basic chatroom (client/server) program which opens uses sockets and many threads. At any given time there are about 5 threads running. If it matters the program is 404 lines long. When i am testing it i usually have 3 cmd's open (1 for a server and 2 clients) but even when i just have 1 running my CPU is at 100 %. Any help is MUCH appreciated. BTW i am pretty new to java :)

What causes my java program to use so many resources?
5 threads running means good number of light weight processes in action. so dear have u imported references or libraries? applets? it is bound 2 use tht much cpu..


How can I make java on games come up with bigger playing field?

I log on to yahoo to play a game and the cards are really small how can I get it to give a bigger card or playing field so the cards are more readable or bigger????

How can I make java on games come up with bigger playing field?
Lower your screen resolution.


How do I use Calendar in Java?

I'm referring to the java.util.Calendar package. I've been using Date and I'm pretty happy with it but it's been deprecated so I'd like to learn how to use Calendar.





I've read about it on Sun's website but I'm still not quite comfortable with it. All I need to do is get the current month/day/year and print it out, so if you know at least that your help is still appreciated.

How do I use Calendar in Java?
// Get calendar instance


Calendar cal = Calendar.getInstance();





int day = cal.get( Calendar.DATE);


int month = cal.get( Calendar.MONTH);


int year = cal.get( Calendar.YEAR);





Watch out for the month value though because January is 0 not 1





Set a value by





cal.set( Calendar.MINUTE, 30 );
Reply:I agree with 1st answer....


It will work...

plants