Monday, May 24, 2010

What is the purpose of a java interface?

From the various books and web pages I've read they state that they are a badge that the class can wear to say it can do certain methods. But at university they seem to be putting great emphasis on their functional ability, which confuses me because they are just method declarations with no body.

What is the purpose of a java interface?
Interfaces:-%26gt; These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented languages, interfaces generally form a hierarchy.





A collection — sometimes called a container — is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data.





A collections framework is a unified architecture for representing and manipulating collections.





The Java Collections Framework provides the following benefits:


1. Reduces programming effort


2. Increases program speed and quality


3. Allows interoperability among unrelated APIs


4. Reduces effort to learn and to use new APIs


5. Reduces effort to design new APIs


6. Fosters software reuse





An interface allows somebody to start from scratch to implement your interface or implement your interface in some other code whose original or primary purpose was quite different from your interface. To them, your interface is only incidental, something that have to add on to the their code to be able to use your package.





An interface is a description of a set of methods that conforming implementing classes must have


How can i make a modular program in java?

I still dont know how to make an object oriented program in java. Would anyone please teach me%26gt;??

How can i make a modular program in java?
Keep your methods and classes closed. When you start to see the same code (or similar code with predictable variations) popping up in a couple different places, look for a way to pull that code into its own method or class to promote reuse.
Reply:If you separate each logical element of your problem and implement each as different classes it would be OO, and as there will be separate .class files generated it would be modular and you could reuse those classes on different applications. An example division to classes : customer, order, invoice, product





Loren Soth
Reply:Java by its nature is both modular and object oriented. So if you write your java program in the usual java way, you will get what you want.

brandon flowers

Is it okay to uninstall the Java Environment stuff from Add or Remove Programs?

each file takes up about 100 + MB... is it okay to uninstall, will it affect my web surfing, etc?

Is it okay to uninstall the Java Environment stuff from Add or Remove Programs?
Well, you only need one, so if you have multiple ones, you can uninstall them all but the latest one. Just be sure to leave the most recent one - Java6 update 2. Otherwise, you won't be able to view certain sites correctly. But, you can certainly uninstall all the older versions - you only need one.
Reply:you could but i have found out t hard way it doesn't run properly
Reply:No keep Java on. You need it if you browse the web and run into any java applets
Reply:I think that depends. U may install Java Enviroment 'cauz it's necessary for some softwares like azureus, if that is the condition, u may uninstall that software %26amp; java and find an alternative which can works out without Java. And for the browsers plugins stuff, mozilla firefox and opera has their own plugins for java and should not occupy such space in disk.
Reply:Do not "uninstall" JAVA. You computer needs it to run properly when its on the internet.





Most all web pages require some form of JAVA to display properly.
Reply:Yes you could uninstall it from Add or Remove Programs... But, if you do this many features on many sites will be disabled. You may see text instead of where a picture should be on some sites. Especially game sites, game sites would give you a big problem if your not running java.








Edit: If i were you i would uninstall all of your java features then go on java.com or something like that site not sure if that one is correct and download the latest version of java.
Reply:It could affect it. It depends on the sites you visit (and what non-web related software you use that depends on Java)


Where can I find free java programs for the Motorola v360i?

I have the cable connector. Is upload complicated?

Where can I find free java programs for the Motorola v360i?
no, you just put the file on your phone and run it. no installation needed. look for JAR files. usually its easier to google the files you are looking for, like "currency converter JAR" on google or something. but www.mobile9.com has alot of free stuff too.


Is anyone there who has experience in java language programming?

Can someone suggest me software in order to edit and compile java file and where I can download it? It is very useful to me. Except : EditPlus, Ultraedit, otsEditor, notepad, textpad, and i dont want to choose compile using jdk

Is anyone there who has experience in java language programming?
I used to use Jcreator quite a bit and BlueJ sometimes when I programmed in java.
Reply:BlueJ is a simple editor for Java. It's prefered by a lot of beginners.





Netbeans is the "official" editor for the Java language and you can download it along with the Java SDK. This editor is more powerful, but some people find it more complicated than BlueJ.





Eclipse is basicly an alternative to Netbeans. Alot of people prefer this to Netbeans.





(BTW.. For anything, but Netbeans, you need to download and install the JDK separately.)





I would recommend downloading all 3 and trying them for yourself. It shouldn't take long for you to determine which is the right one for you.
Reply:Eclipse or Netbeans would be fine places to start.


Skip things like BlueJ -- you'll just end up learning that program and nothing about Java.





Personally, I strongly recommend a command prompt and notepad and calling "javac" and "java" directly with an SDK install. This will make you actually _learn_ Java and what's going on. If you take the easy way out early on, you're going to short yourself on some fundamentals. There are plenty of tutorials on Sun's pages to get you started this way.
Reply:Eclipse is the best tool to use. It is free and open-source.
Reply:JBuilder...
Reply:u need the program dat kit thingy


What is an "IRC client" and how is it different from using java script?

I recently got into chatting and one of the how to do's for the chat room talked about IRC client and it appears that you have more capabilites if you use this forum. Is that true, and if so, what is better about it?

What is an "IRC client" and how is it different from using java script?
An IRC client is nothing but a program used to connect to an irc (it means internet relay chat) network. you have more functionability using a client. You also can log onto irc anonymously that java script will not allow you to do. Mirc is probably the most popular irc client and can be downloaded at mirc.com
Reply:A IRC client is a program that lets you into IRC chat rooms. The best is MIRC www.mirc.com It has LOTS more features than just a JAVA client! Check it out!

video cards

How do I install a Java Game on my Sony Ericsson S700?

I downloaded both the Jad and Jar files in the "other" folder on my mobile phone, but there is no install option, please help.

How do I install a Java Game on my Sony Ericsson S700?
Here's a guide on installing java games on Sony Ericsson phones-


http://www.esato.com/board/viewtopic.php...





Hope that helps


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

Can anybody give me some good websites to learn how to java program?

I know some basics but forgot alot about programming. Please give me some good sites so i can learn and maybe some definitions of some terms. Any info would help. Thanks for the help:D

Can anybody give me some good websites to learn how to java program?
j2se


http://www.freecodemomma.com/links.php?c...


http://www.janeg.ca/index.html


http://www.apl.jhu.edu/~hall/java/.........


http://www.java2s.com/


http://www.dickbaldwin.com/toc.htm.........


http://www.bestebooksworld.com/cat/java-...


http://2020ok.com/3610.htm


http://www.techbooksforfree.com/microsof...


http://www.marcocantu.com/papers/ooplang...


http://journals.ecs.soton.ac.uk/java/tut...


http://www.apl.jhu.edu/~hall/java/.........


http://www.allapplabs.com/


http://www.computer-books.us/


http://www.examsguide.com/scjp/relatedli...


http://www.akgupta.com/java/certificatio...


http://www.geocities.com/wahjava/mocklin...





j2ee


http://www.corejsp.com/


http://www.jspolympus.com/jsp/jsp.jsp...


http://www.jsptut.com/


http://www.roseindia.net/jsp/jsp-pdf-boo...


http://www.coreservlets.com/


http://java.sun.com/j2ee/1.4/docs/tutori...


http://developers.sun.com/downloads/... i.m.p


http://java.sun.com/docs/books/tutorial/...


http://java.sun.com/products/jsp/tags/11...


http://www.laliluna.de/struts-jsf-jsp-se...


http://www.jsync.com/resources/...
Reply:the java tutorials are not bad, Just take your time.
Reply:go to a bookstore such as barns and noble. they have tons of programming books
Reply:www.w3.org


www.google.com


How do i generate a number between 10 and 99 in Java using the Random class?

I need to create a program that randomly generates a number between 10 and 99 and i dont know how to do that. any ideas?

How do i generate a number between 10 and 99 in Java using the Random class?
import java.util.Random;


Random x = new Random();


x.nextInt(100) will generate a new random number between 0 and 100


add selection statement to reject numbers below 10.





alternatively use something like


randomno = x.nextInt(90) + 10;


neater and saves processing i guess


Is it possible to copy a java applet from one website to your own website?

I need to copy a java applet from one website to my own and was wondering if that is possible, either with some software or any way possible if there is one

Is it possible to copy a java applet from one website to your own website?
They can be copied and will work as long as there is no code in the module checking the site. The only problem is downloading all the associated files. The graphic files that an applet uses are not referred to in the HTML. You will have to edit the module and look for URLs.





Here is an example of one that I copied.


http://www.geocities.com/denmarks/15_puz...



Reply:Applet, yes: It's independent code that is downloaded from the server to the web-browser. Servlets, though, run on the server.


Why not use applets with source code provided free online, such as the URL below? Look at the source .java code to se how you could modify it to make it your own.


Be aware that many users have turned off Java applet download as a security measure; if your web site depends on that code, many users would be turned away.
Reply:You can't, but really you would be stealing the other persons code. Unless it is free, and can be used just give the person credit!


What is a very good java tutorial?

My friends are making a java based adaption of a card game. I want to help but I don't know java. I've put my fingers into html and qbasic and visual basic but that was like 10 years ago. I'd like a recommendation of a good java tutorial to get me up to speed.

What is a very good java tutorial?
http://java.sun.com/docs/books/tutorial/





Interestingly, it is the only time I've found the official tutorial for a programming language to be any good.


How to return multiple integers with a single return statement in java?

Once again i come to the yahoo answers community for help with my java homework. The goal is to make a 2 class program where one class will have a menu to choose options, while the other has a constructor to make 2 ints of a complex number (a+bi where i = square root -1). I have most of the program done and running but i need to make a method in the program with the constructor to add the complex numbers. This means ill run somthing like the following:


public ?????????? AddComp(ComplexNumber other){tempvar =this.real + other.real;


tempvar2 = this.complex + other.complex;


return (????????????????);}


Now my question is how do i return those 2 ints to the main class and method? can you return 2 values in one method or do i have to make seperate methods for the real and complex parts? and if i could do multiple return values, what do i declarethe method as?


Thanks a ton for the help.


Dan

How to return multiple integers with a single return statement in java?
Hey Dan, you would return an object which would contain both the integers. What class is "this"? I assume it is something like class ComplexNumber which contains two fields "int real" and "int complex". I that is the case then you would create a ComplexNumber in the method and return that. I haven't done a lot of Java programming but this is how its done in C++





Class ComplexNumber {


public:


ComplexNumber addComp(ComplexNumber other) {


cn = new ComplexNumber();


cn.real = this.real + other.real;


cn.complex = this.complex + other.complex





return cn;


}





int real;


int complex;


}











int main() {


ComplexNumber a, b, c;





c = a.addComp(b);


}








Hope that helps some.


How can I create java executable that can run on any windows machine? Are there any free compilers for this?

I have been into computer programming for a number of years. Currently I do mainframe programming for work (COBOL and JCL mostly). I dabble in web and PC more as a hobbie. I have a C++ compiler (and old version of Borlands Turbo C++ I think) that creates executables that I can run on any windows machines. I am interested in finding a way of doing this with Java (since java's exeption handling is much easier for me to implement). I currently use Borland JBuilder for my java development. Should I be using something else?

How can I create java executable that can run on any windows machine? Are there any free compilers for this?
1. Symentec Java Cafe


2. Microsoft J++


3. Microsoft J#





these compilers converts java files to .exe
Reply:You sound like a smart guy when I look at your questions and answers EXCEPT for when i read your answer regarding tipping. You sounded so selfish..Next time tip those poor watiresses will ya
Reply:ME!! LOL....sorry, couldn't resist your picture! I can't help you though....not too much into programming.
Reply:jsmooth software helps you to make exe from the calss files and it is compatible with windows.


How do I write a computer program that will allow me to do the pythagoreon theorem in java?

i need to be know how to write this program by tomorrow.

How do I write a computer program that will allow me to do the pythagoreon theorem in java?
The problem with your question is that it does not give enough information.


That is not to say that I cannot produce the code.


The problem is that I do not know what you want or what level of code you want to produce.





Because of my level of knowledge and given your question I would fill in the gaps myself and produce for you a very complete answer.


This would be no help what so ever to you as it would be obvious to anyone that you did not write the code.





Starting with the basics.


The sum of the square of the sides of a right angled triangle are equal to the square of the hypotenuse.


This theorem has 2 different outputs.


Which one do you require?


If it is both then you need to tell the program which values you are giving.


If only one then the parameters are set and you just enter the values required to give you the answer.


The parameters are probably going to be lengths only so you will have to square the values.


There will be an addition or subtraction depending on which answer is required and then a square root will be required for the answer.





doubleX=Math.sqrt(doubleY);





I am sure that you can now work out the rest.
Reply:it is easy. just read your course notes and work with a classmate.





all you are really doing is one line of algebra. what kind of UI do you need? to enter in any values? what is the output required.
Reply:www.google.com





search:pythagoreon theorem with Java..


good luck

flowers online

How do I make java script active in Explorer?

To use 'help' in Pagemaker 7.0 I have to make java script active in Explorer

How do I make java script active in Explorer?
1. Click "Tools" --%26gt; "Internet Options"


2. Select the Advanced Tab, and scroll down to "Java (Sun)"


3. Check the box next to the "Use Java 2" version


4. Next, select the Security Tab, and select the "Custom Level" button


5. Scroll down to "Scripting of Java applets"


6. Make sure the "Enable" radio button is checked.


7. Click OK to save your preference.
Reply:The Java Runtime Environmet should be configured when it is downloaded from Sun Micro systems.


What are the prerequisites for doing a Sun Certified java Programmer certification?

are v supposed to take up some course or can we directly take up the exam.what are the procedures involved in applying for the exams.if i can just directly take up the exams ,then what materials should i refer to?will i be given some materials?

What are the prerequisites for doing a Sun Certified java Programmer certification?
There are no prerequisites for SCJP. U can register from sun site or at any prometric test center. It is wiser to register after u have completed ur prep. There are only 2 books u need to read but u must read very carefully and hard. Further u must practice the exams strictly adhering to the suggestions of the books. Presently I'm preparing for SCJP and I need a study partners who is very very determined to through SCJP in one sitting scoring more than 90%. Mail me if u like and think urself appropriate with ur mail Id.


How can I get Java to work for me?

I keep getting the same error message, "Too many Java systems running at the same time"


I have no clue how to fix it, I've been trying forever.


Help please?

How can I get Java to work for me?
Well you probably have alot of java installations.


Go to add/remove programs (windows) and uninstall all but the latest version of Java.
Reply:ctrl/alt/del - processes - javaw.exe





click on it, then click "end process"





you probably have more than one instance of this running on your machine.


What is the Java code that you paste into your browser to edit websites?

There is like a javascript code that you paste as your url and press enter. Once you did it, the whole site will be under your control. I know it doesnt really change it but I want to find out what the code is. Thanks

What is the Java code that you paste into your browser to edit websites?
javascript: document.body. contentEditable='true'; document.designMode='on'; void 0





Visit the page you want to edit. Then copy/paste this into the address box and press enter.
Reply:ROFL


here's something.





Javascript can change things on a website





but its not that simple,


and you can't hack a website with one line of Mocha





That's madness.





You would have to own the website, and have DIRECT access to do that.
Reply:its


javascript:alert()


or


javascript:void()


inside of ()


you want to put what you want to change, for instance


javascript:alert(document.forms[4].pas...


that will change that password for the fifth


form that uses 'passwordcheck' and calls the password


'pass'


many other things can be done

flower seeds

How can I create a simple word unscrambler in java?

The program will start by asking the user to input a "scrambled" word. Then it will compute and output all possible re-arrangements of the letters in the user's input. Sounds easy, but I'm dying, like usual, trying to figure out how to code it.





And I'm not just asking for code, it you want to add it, please, haha, thats ok. But I know some people are anti-code, which is fine with me, i just want to know how. Thanks!

How can I create a simple word unscrambler in java?
Nice one! LOL! The answer, my friend, is Deep Recursion!


I am seriously "pro-code" - it's the best way to learn. Even when you do things that can be done better, that doesn't matter. Here's some code that will do it. You can tidy it up by removing three of the functions jsMid, jsLeft and jsRight if you want really minimal code (but heck, it was based on a VB algorithm so I just kept the idea of VB string functions and VB string types. BY THE WAY - this is NOT EFFICIENT - I wouldn't enter more than 6 characters or you may be waiting a while..... enjoy


%26lt;html%26gt;





%26lt;head%26gt;


%26lt;meta http-equiv="Content-Language" content="en-gb"%26gt;


%26lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1252"%26gt;





%26lt;script type="text/javascript" language="javascript"%26gt;





function factorial(n) {


if ( (n == 0) || (n == 1) ) return 1


else return (n * factorial(n-1) )


}





function scramble() {


var ipLen, ipStr, e ;





e = document.getElementById("txtIP") ;


ipStr = e.value ;


ipLen = ipStr.length ;





if ( ipLen %26lt; 2 ) {


alert ( "Be sensible! Enter two or more characters!" ) ;


return ;


}





alert ( "You have entered " + ipLen + " characters - there are " + factorial(ipLen) + " permutations!" ) ;





getCombinations ( "", ipStr ) ;





}





function getCombinations ( estr, ostr ) {


var i, j, e ;





j = ostr.length ;





if ( j %26lt; 2 ) {


e = document.getElementById("results")


s = e.innerHTML


s = s + "%26lt;br%26gt;" + estr + ostr


e.innerHTML = s


}


else {


for ( i=1; i%26lt;=j; i++ ){


getCombinations ( estr + jsMid(ostr,i, 1), jsLeft(ostr, i-1) + jsRight(ostr, j-i))


}


}


}





function jsMid ( str, s, c ) {


return str.substring(s-1, s-1+c) ;


}





function jsLeft (str, c ) {


return str.substring ( 0, c ) ;


}





function jsRight ( str, c ) {


return str.substring ( str.length - c ) ;


}





%26lt;/script%26gt;





%26lt;/head%26gt;





%26lt;body%26gt;





%26lt;p%26gt;   


Input your word here %26lt;input type="text" id="txtIP" name="T1" size="20"%26gt;  Now,


%26lt;span id="span1" onclick="scramble()" %26gt;%26lt;u%26gt;click me%26lt;/u%26gt;%26lt;/span%26gt; to scramble !!


%26lt;/p%26gt;





%26lt;/form%26gt;





%26lt;p%26gt;


%26lt;div id="results"%26gt;


%26lt;/div%26gt;


%26lt;/p%26gt;





%26lt;/body%26gt;





%26lt;/html%26gt;





And if you figure out the recursion, I'll buy you a beer !!!!!


How do you have java read a passage from a text file and pick out the isograms?

An isogram is a word that has no repeating letters in it (ie. "computer" is an isogram where "science" is not.)





I need help with this...i need to know how for a future java project. Better to get familiar with this now than later...

How do you have java read a passage from a text file and pick out the isograms?
I'll just give you an outline for how I'd do it to start, but if you have a question while writing the code, I'd be happy to help out. Just ask away.








To start, read in the entire file. Use String.split() to split the different tokens (i.e., words) over whitespace characters. This will put each token as an element of an array. Then loop through that array, like so (straight from Java docs):





String[] result = "this is a test".split("\\s");


for (int x=0; x%26lt;result.length; x++)


System.out.println(result[x]);





Here's the not-so-straightforward part. Within that loop, you need to verify the token is an isogram. (To shorten code, you could write a separate function isIsogram() that returns a boolean.) I first thought I could make a boolean array of size 255 and then put 'true' to the array index of the ASCII value of the current character, then check each time if that space is already true. That should work, but it seems a bit contrived and a waste of space. Instead, I figure you could use some sort of List object, like a LinkedList. That would be stupid easy:





You would loop through a string character by character, and for each one, add it to the list (LinkedList.add()). Then each time, check and see if it already contains that characters (LinkedList.contains()). If it does, it's not an isogram. If you make it through the loop without that happening, it is an isogram. After you finish a word and are ready to move on to the next, empty the list (LinkedList.clear()). Stupid easy, right?





Obviously, when you find an isogram, add it to a list or array. (I would go with LinkedList again, since you won't know how many words you'll have until you're finished. It's variable in size, while you must specify the size of an array.) When all is said and done, loop through the list of words, printing them out or doing whatever.








Hopefully that was all clear enough to get you started. Like I said, feel free to ask for help if you need it while coding that up. Good luck!


Why does my Java application look different on different computers?

I may not have provided enough information here, but which seems the most likely?





I wrote a program, compiled using the most recent jdk (JDK 6).


I am trying to run this program on another computer with an older JRE. The formatting looks all wrong.





Which of the following is most likely the cause of my problem:





* Resolution of the two computers are different


* The JRE is too old. I more recent JRE would solve the problem


* The JDK is too new. An older JDK would solve the problem.


* Something else?

Why does my Java application look different on different computers?
As long as you are running on the same platform (both computers are windows or both are mac, etc) the jre should behave the same. The intent is to be backward compatible. The most likely cause of those listed is the resolution. But your application could also be using different fonts on the different computers.


The best place to start is to set the resolution on the dev machine to be the same as the machine with the older jre.


But it would be really easy to change all the variables (one at a time of course) to see what affects it the most. Getting an old jdk to build with, or a new jre to run with isn't too hard.


But I would check the fonts as well. Good Luck.
Reply:I have never faced such problem. But I'm interested to know the appropriate solution.





Would u kindly post this question at the Sun Developers Network Swing Forum. More experienced men should be able to answer the question correctly.





Please follow the link below.





http://forum.java.sun.com/forum.jspa?for...





Kindly provide there all the informations that u feel necessary to shoot the problem and register yourself there with the same screen name so that I can find out the question.





Thanks in advance.
Reply:java is funny...hundreds of billions of dollars of lawsuits have been fought over it..





microsoft internet explorer 6 has it's own java engine...


microsoft internet explorer 7 has an entirely different engine...


microsfoft outlook now uses the crappy msword html engine (yeah, its true...)


mozilla firefox and other open source engines are often loosely based on the old netscape engine...


there's the third party j2ee engine...you can use that..i do..


safari uses it's own engine altogehter..





yeah...different browsers use different engines...the results are gonna vary..
Reply:Hi, the problem is probably cuz Java uses the visual theming of your operating system. So if you run your code on vista, everything (eg. buttons) is styled according to vista theme; if you run your code on XP, everything is styled according to the current XP theme and so on. So on different OS the output will be different.





Try using swing and specify the style that you want to use in your application...





Hope this Helps...


Why is it when I try to get on Yahoo games a message comes up saying Java Virtual Machine is in process?

This message says that I'm already using Java when I have nothing else open. How do I get rid of this message so I can play Yahoo games?

Why is it when I try to get on Yahoo games a message comes up saying Java Virtual Machine is in process?
ok try looking on the bottom rght corner of your screen next to where it shows you what time it is and hit the arrow to show all programs that are running and look for the little java coffie cup simbol and close it out if thats not working or its not showing it as being opened try doing this





go to start, then "run" in the bar type "msconfig" and hit enter after it opens the program click the startup tab and hit uncheck all or something like that i dont remember and i cant check on this computer but there will be a list that shows you every single program that boots up when you turn on your pc make sure that none of them are checked and then reboot





when it finally loads up agian it will give you a warning message telling you that your system has been changed and windows automatically started cirtain programs but these are only the ones that it needed to turn on just hit ok and then try and go back to yahoo games if that dont work try a virus scan or something i dont know what else you can do
Reply:stop being an idiot

anther

Details on signing up for a Sun Certified Java Programmer certifcation exam?

Somebody said it's relatively straightforward. You go online, find testing centers that administer it, and just pay and order the exam time slot online and show up. Is there anything else I'm missing or should be aware of?

Details on signing up for a Sun Certified Java Programmer certifcation exam?
There are several free test also available oninternet and use should practice with them and then write the test. There are great help in passing the test. The test regiteration is available at Sun Microsystems website:





http://www.sun.com/training/certificatio...
Reply:Here is where all questions are answered:





http://www.sun.com/training/certificatio...





Hope this helps.


How do i properly use a line printer spacing chart for printing a heading in java?

If your question ask how to create a simple line in java that will be displayed in the system window, the code is:


System.out.println("Type your heading in here");


plus your going to need to set up your class and main method to actually print that line of code but I'm going to assume you know that.


Note: You may want to use a java forum as yahoo answers is not always the best source for java programming, i recommend: http://forum.java.sun.com/


If this answer does not answer your question please provide additional details to your question.


-I hope this helps


How do you use the useDelimiter function of Java?

I need to create a program that processes input from the user in the following format. 0-393-30375-6. This number is the ISBN of the book. The first digit indicates the language in which the book is


written. The next group of digits specifies the publisher and the group after that is a number assigned


by the publisher to identify the book. The ISBN ends with a “check digit” that is used to verify the accuracy of the preceding digits.


How can i allow for the program to accept such input?

How do you use the useDelimiter function of Java?
i am searching for the same questions as well , there is jack **** on the internet


How do i write a program using java that uses the length of the side of a cube?

the surface area of a cube can be known if we know the lenght of an edge. i need to write a program that takes the length of an edge (an integer) as input and prints the cubes surface area as the output.

How do i write a program using java that uses the length of the side of a cube?
import java.io.*;


class Cube


{


public static void main(String args[]) throws IOException


{


BufferedReader br=new BufferedReader(new InputStreamReader(System.in));


System.out.print("Enter the edge of the cube ");


String a=br.readLine();


int e=Integer.parseInt(a);


int SA=6*e*e;


System.out.print("The total surface area of the cube is "+SA);


}


}
Reply:import java.util.Scanner;


public class Cube{


public static void main(String[] args){


int length;


Scanner scan = new Scanner(System.in);


System.out.println("What's the length of the cube edge%26gt;");


length = scan.nextInt();


System.out.println("The surface area is " + (length*length)*6);


}


}
Reply:L * W





its the same as a 2d square.





3d is an illusion, so if its "rotated", it just has a different appearence.

tomato plants

How can you include graphs in a java program?

I am using eclipse as a running environment and i want to include a graph that updates continuously with the program. Any ideas please???

How can you include graphs in a java program?
Use Jfreechart. Its free and easy to program.
Reply:Yes, you are right. Here is another link. Hope it helps.


http://www.java2s.com/Code/Jav... Report It

Reply:Try using Swing.


I want to drag and drop chess pieces on a board using Java Applet?

I have not written any Java code for more than 4 years now. I am trying to build an chess game applet that can allow the players move chess pieces by drag and drop.





I want working sample codes of drag and drop used in a Java applet.

I want to drag and drop chess pieces on a board using Java Applet?
Java has Drag and drop suppot for Swing components.


Check the following URL at Sun java site to know about DND.





http://java.sun.com/docs/books/tutorial/...





U also must have sound knowledge of Java Swing. Check below For tutorial.





http://java.sun.com/docs/books/tutorial/...


How would you write this program in Java?

Suppose you are asked to write a program that models a Chess Board, which we know has rows and columns. Create a design for a two dimensional array that shows the piece that is on the particular square of the chesboard. Design an algorithm that iterates through each square on the chessboard and prints out what pice, if any, is on the board.

How would you write this program in Java?
I would create a two dimensional array of objects representing the squares with composition for a piece object. To iterate through, I would use two nested loops, one to represent the row and the other to represent the column of the matrix. As you iterate through, check to see if a square contains a piece object and print it with its positon and continue.


What exactly is error checking within Java Applications?

I'm currently designing an application in which I need to ouput a list of the contents within a root directory and all its subdirectories.





Each line of the output will show the size of a particular directory AND the total size of the root directory.

What exactly is error checking within Java Applications?
Error checking... make sure your application is checking areas that could potentially throw an exception and crash your app. Try...catch blocks will usually do the trick. Be sure to let your code flow out of the catch instead of halting though.





I guess that's what you're wanting. =)

petal

Will that be a cup of java, or a spot of tea for you today?

Which do you prefer?

Will that be a cup of java, or a spot of tea for you today?
Please make me a drink of grain alcohol and rain water, and help yourself to whatever you'd like.
Reply:Well, a cup of java in the morning, and then in the afternoon, a spot of tea, ( I'm a Gemini! lol )
Reply:Coffee, but once in a while a cup of tea will suffice.
Reply:I will have Starbucks coffee the felaciano with cream.
Reply:I'm more in herbal teas, I like chamomille, anise and coca tea while in the gym for the extra boost





http://www.amazon.com/Coca-tea-Windsor-1...
Reply:spot o' tea :-D
Reply:definitely coffee


What is the relationship between web programming languages and others like C,C++,and Java?

I'm so interested in knowing if there is a relationship between programming languages for us to design webpages and those developed to help software makers achieve their own business-based objectives.





Is there any way php,asp,scripts,and other kind of platforms have something to do with the most commonly used programming languages such as C,C++,Java ?

What is the relationship between web programming languages and others like C,C++,and Java?
The general philosophy is the same. Personally learning VB and C++ made me think of web languages as a piece of cake.





As there is a wide range of web programming languages many of them vary from interpreted (ie. Javascript) to compiled (ie. Java) and also some use Object Oriented features.





http://en.wikipedia.org/wiki/Web_program...


http://en.wikipedia.org/wiki/Interpreted...


Does anyone know the html or Java code to embed a web cam into a web page?

This summary is not available. Please click here to view the post.

How do I enable Java Scripting and Java in my browser settings?

I also need the latest Flash plugin for my browser. How do I go about this?

How do I enable Java Scripting and Java in my browser settings?
here is how:


http://www.wgint.com/careers/external_ap...

garden sheds

How do I determine the number of days between two times in Java?

So, given two dates that could be days, weeks, months, or even years apart, is there an easy way to determine the number of days between them?

How do I determine the number of days between two times in Java?
If you have two instances of 'Calendar', you can call their getTimeInMillis() and perform the math on that. If you have Date objects, math on getTime() would work just as well.





The difference, divided by 86400000, would be the difference in days.
Reply:This is actually not a very easy problem to solve using your own calculations because the values can get thrown by Daylight Savings Times. Use the Java Date/Calendar classes instead.





Do NOT just take the timestamps and divide by number of ms/day. This is not always correct.





Here is a link to an article with more details:





http://www.xmission.com/~goodhill/dates/...


Is it really possible to teach myself java?

I want to learn java programming language. Is it possible to get a simple tutorial and teach myself? If yes, which one do you recommend?

Is it really possible to teach myself java?
There is no reason why you can't teach yourself Java.





Try the following free resources


http://java.sun.com/docs/books/tutorial


http://www.faqs.org/docs/think_java/TIJ3...





Hope they help


Regards


Bill
Reply:You can learn java, try java for dummies or idoits guide for java programming the author make it as simple as posibile in order to learn it well.


How to calculate the time difference in Java?

I have to know the total no. of hours an employee has rendered thru the employee's time-in and time-out (codes in Java).





Data type of time-in and time-out is


DATETIME (e.g. yyyy-MM-dd HH:mm)





Pls. help me.





Tnx!

How to calculate the time difference in Java?
instead of writing a sample out here, here's one on the net





http://www.java2s.com/Code/Java/Developm...
Reply:KidK has given awesome solution. Report It

Reply:i've written one program but it is in VB. you need to import a date class. also, you need to manipulate the date format so java understands it. i believe you are using mysql as database right? (yyyy-MM-dd HH:mm:ss)





i think java's date format is dd-MM-YYYY, this is the same in VB. i used a string to manipulate the date format so it becomes like this:





Dim adate As Date


Dim strDate As String


adate = Date.Now


strDate = adate.ToString("yyyy-MM-dd HH:mm:ss")





from here, you simply subtract your time in from your time out..


VB has this command to calculate the number of hours from 2 input date parameters:





sstring = DateDiff("H", ddate, sdate, FirstDayOfWeek.Monday)





where "H" stands for "Hours" (the result is in hours)


ddate as your date in


sdate as your date out


and firstdayofweek is the start of week, since it is office use, we use monday as firstdayofweek





its been 3 years since i last programmed in java so i kinda forgot it! i hope this gives you some idea though...
Reply:seraphicmortal, if you are using a data type with the name DATETIME then it could be a proprietory type. This means, it is not a standard Java type. The types in Java are


(1) an sql Date


(2) a Date (this is mostly deprecated)


(3) a Calendar.





You will have to check the source, API docs, etc of this data type, and check whether there are any methods to get a 'long' or similar that represents the time, and then subtract these two 'long's that represent the two times, and convert the result back to minutes, hours, days, etc.





Most times should be saved in an integer form that starts from 1970 or so. This makes the dates standardised, and you can compare them.





You could even post the source or API docs on here in the additional details, and then someone maybe able to help you find the method(s) if any exist.
Reply:Oops. I noticed that Yahoo truncated part of my source because it was too long. Be sure you put your cursor over the code containing DateFormat to examine the rest of it! It's shown as a tooltip.





---





Hi, again, thanks for the note. As mentioned below (thanks), DATETIME isn't a standard Java class. Can you provide me an interface definition of it, or can you convert it to a standard Java Date object or can you convert it to a string? It's also possible to use the DateFormat class and specify a custom date type, but you will need to convert your DATETIME class objects all in to Strings.





--





Hi,





Using the Date class (java.util.Date), you can manipulate time, and using DateFormat, we can parse the time. Let's say that you have your date format as a String:





String timeIn;


String timeOut;





And now we want the difference of the time:





Date timeInD = DateFormat.getDateInstance().parse(timeI...


Date timeOutD = DateFormat.getDateInstance().parse(timeO...





long msec = timeOutD.getTime() - timeInD.getTime();





msec should now contain the time, in milliseconds, between your time-in and time-out.





To convert it to something useful:





float timeHours = msec / 1000 / 60 / 60;


How do I write a Java "for" loop that sums up the difference of two user inputted integers?

Specifically, I need the user to enter two integers, a and b. That part I got, i think. But then I need it to compute the sum of all integers from a to b, inclusive. And then I need it to ouput that value.

How do I write a Java "for" loop that sums up the difference of two user inputted integers?
int sum = 0;


for(int i = a; i %26lt;= b; i++)


{


sum += i;


}





System.out.println("The sum a to b inclusive: " + sum);





Let me know if this doesn't make sense!
Reply:you can use the following code:





public class Sum


{





public Sum()


{


int a;


int b;


}





public int add(int a, int b)


{


return a + b;


}


}

garden design

Where can I find free ringtones and java games downloadables to my computer?

of artist like Horrorpops, lacuna coil, evanescence, kittie.


pliphonic and mp3's. Cool java games like the prince of persia, Worms, Underworld and so on... My cell phone is a Motorola E550

Where can I find free ringtones and java games downloadables to my computer?
Music has been a rich source of entertainment since the ages. It still continues to throb the hearts of many. In today’s advanced technological world there are many gadgets which are kept by the users with them always like I-pod, walkman etc. There was time of Cassettes, CDs, DVDs and now is the time of recording music in USB drives, mobile phones and listening to it at ur leisure time. Sometimes we need to buy music chores and sometimes we get it free from our friends or relatives. Internet is gaining ground everyday in everybody’s life. Life is, slowly, becoming incomplete without Internet. Internet is a rich source of music, ringtones too. It provides music, ringtones; paid and free, both. But why to buy when something is available free?





http://cellphones.about.com/od/ringtones...


http://www.mambasearch.com/search.php?tp...


http://hotlook.org/search.php?%26amp;saff=17%26amp;q...


http://demodiaries.com/ringtones/downloa...


http://www.freewebs.com/download-free-ri...


http://www.wheelerassociates.com/rington...


http://www.truelocal.com/topicsearch.asp...


http://www.inclusion.net/


http://www.mobile9.com/


http://www.cebuplus.com/electronics/224/...


http://www.ringtonechopshop.com/site/ind...


http://www.funformobile.com/pages/ringto...


http://www.mobileheart.com/


http://www.freemobilefun.net/ringtones/


http://www.polyphonicringtonez.com/wap/ This site can be surfed thru only mobile phone and not thru computer. Take care of this thing.


http://www.tonedump.com/


http://www.zedge.net/?p=ringtones


http://www.3gforfree.com/index.php


http://www.mixxer.com/


http://free100ringtones.com/


http://www.boostmobile.com/


http://www.uncg.edu/art/courses/rwrice/c...


http://www.freeringtonesnow.net/FreeRing...


Please visit the above pages to find what u r looking for. U will find a lot of ringtones and many other things like wallpaper etc. Choose as per ur choice. I hope, it helps u.
Reply:I know a site. It's free. (Unless you have to pay for texts) You upload and mp3 off of your computer and use any part of that song and send it to your phone. The more people you have sign up through your link, the more credits you get for ringtones. It also gives you 4 free credits for just signing up.





1 credit = 1 ringtone.





Go to my link and click the first box that says Myxer Tones and sign up.





I promise, 100% free.





(It's my boyfriend's myspace. it has the link on it)
Reply:try http://epohcj.com


Friday, May 21, 2010

Does anyone know any good webpages that have videos that are run by java?

Im on someone elses comp and i dont wanna dl flash so i gotta use java.

Does anyone know any good webpages that have videos that are run by java?
You will find it on bottom of the page.


http://java.sun.com/java2/whatis/1996/


How can I use the File Writer filter from Visual Basic or Java?

I know about a dll call FSFWrap, but I couldn't get it to work. The real issue is How can I use the File Writer fiter from Java. I can create a java wrapper around any COM object. So if you can get it to work in VB via COM, i can get it to work in Java...

How can I use the File Writer filter from Visual Basic or Java?
What version VB? What are you trying to do with it, exactly? your question wasn't complete.


My computer has windows vista and has a folder named Java, dose that mean i can start programing using Java?

Everytime i open the .exe program it wont work why is it not working?

My computer has windows vista and has a folder named Java, dose that mean i can start programing using Java?
it is a passive application, not an active one
Reply:i agree with mrpinnk . peewee for president !!!!! yay
Reply:Er no, Java is a language (and a tiring one at that). It means Java is enabled as a service function on your PC.
Reply:No, it only means that you can use Java applications, but if you want to program in Java (you must, of course, learn before and here is something that might help http://devel.njit.edu/~media/CIS%20602/i... you can use this site http://java.sun.com/ for all the information you need.


Download NetBeans IDE, Java SE 6 and Java EE 5 SDK.


That should be OK for a start.
Reply:No, it means that your computer has the application Java on it for things such as web games and video. Not the programming type of Java.
Reply:Java actually has 2 installs. The one you will find on most PCs is the Java RE which mean Java Runtime Environment. In order to program in java you need the SDK Systems Development Kit.





The Java.exe requires a class file containing the compiled java code to execute. It itself is the protective environment in which java programs are run, it captures programming errors in order to notify the programmer of his fault instead of simply blue screening. Also the compiled code for java is not machine code but rather a platform independant set of instructions which the java program translates into instructions for whatever computer it is running on.





This is why java works on any computer and also why your java.exe is not working. No code, no go.





Hope this was helpful
Reply:lol ... GREAT QUESTION !! I LOVE THIS PLACE !!





No, you can't open it up and 'start programming'. You need this so that Java applications will work properly on your pc

flower pictures

How can I download the java script from my computer where should I go to do this?

Your question doesn't really make sense. When you go to a website that contains JavaScript, it is transferred to a local cache on your machine and executed locally. In essence, viewing a website with Javascript has already "downloaded" it to your machine.

How can I download the java script from my computer where should I go to do this?
I'm afraid I have no idea what you are asking. Please clarify or message me with more details.





There is no Javascript to download if it is already on your computer. Do you mean Javascript code of a site on the Internet? If so, you can do so by right clicking and going to View Source or something similar.





Then, the Javascript will be between %26lt;script%26gt; and %26lt;/script%26gt; tags, often between %26lt;script language="javascript"%26gt; and %26lt;/script%26gt; tags. If not, then it may be linked in an external file, such as %26lt;script src="external.js"%26gt;%26lt;/script%26gt; in which case you must go to the external.js page to view or download the code.





Of course, if you mean Java instead of Javascript, you can go to http://java.sun.com and download either the JRE or the JDK. The JDK is the Java Development Kit and it includes JRE (Java Runtime Environment) and several tools to create and compile your own Java programs. However, if you only need to view Java applets online or run Java applications like Azureus, you only need to download JRE.
Reply:javascript is built into your browser. if you mean java then download it here http://www.java.com/
Reply:Visit this website to install Javascript software:


http://www.java.com/en/download/index.js...
Reply:sorry yar i dont know


How do I reinstall java script ? I cannot view videos and I keep get turn on java script.?

I cleared all temp internet files and now I cannot view videos. The message I keep getting is that I have java script turned off or I need to download media flash. I have media flash! but I still cant view some web pages or many videos

How do I reinstall java script ? I cannot view videos and I keep get turn on java script.?
I just went and googled Java download and downloaded Java runtime. and installed it. Never had a problem.
Reply:i done that already but i cannot install it.what can i do? i experienced that also The message I keep getting is that I have java script turned off or I need to download media flash. I have media flash! and also my ym i can't receive instant message %26amp; my mail messages i cannot view. pls help me. Report It

Reply:Go to www.java.com


find download, and download java.


it's a big file


How to call a method in a public interface in Java?

Dear all:





I met a problem about how to call a method I need from a public interface in Java.What I've done in JCreator are:





1


Defined an internal class to implement the public interface.The internal class


only had a constructor.


class AA implements publicinterface


{


public AA()


{


}


}





2


Defined an object BB of the class AA.


AA BB = new AA();





3


To call the method at demanded position.


BB.methodname();





When I compiled source file ,JCreator reported error:


External class name.AA is not absract and does not override abstract method methodNameOfPublic in package.





Now I am confused by calling a method from public interface that belongs with a third-party SDK and all the necessary packages successfully imported in Java.

How to call a method in a public interface in Java?
1) If the third party SDK provides the interface and expects you to use it to call, and they are the ones providing the implementation, then you just call it on their interface type, e.g. they have methods somewhere that return an object that implements the interface you refer to.





2) If the third party SDK expects YOU to implement the interface, then you must write a class that implements the interface. Just declaring that your class "implements publicinterface" is not sufficient. Your class must supply the implementation of all interface methods, otherwise there are still undefined methods and your class will have to be declare "abstract" (that is what the compiler is trying to tel you).





Example:


public interface Logger{





public void log(String msg);





}





public class ConsoleLogger implements Logger {





//implementation of Logger.log()


public void log(String msg){


System.out.println(msg);


}





}
Reply:at the top write


public [your class reference] implements [interface reference]


How do you save the Java Hack Code when you make changes on something?

I want to know how to do that for something.


Someone tell me!

How do you save the Java Hack Code when you make changes on something?
You need to be more Specific, what Java Hack Code, how are you making changes, and what is this "something"?

credit cards

How i use java to find the time on a user computer?

Im making a 7 segment digital display with java.





Its basically going to be lines drawing out the seven segment display.





How do i code it to get the time and then display that time in java





I have the code for displaying the numbers but how do i get it to get the time from the computer and then take the user time and display it?








THANKS FOR ANY HELP!

How i use java to find the time on a user computer?
java.util.Calendar.getInstance() returns an instance of a Calendar. Then with that instance you use get(field) to retrieve the fields you need. Some values for field are:


Calendar.YEAR


Calendar.MONTH


Calendar.DAY_OF_MONTH


Calendar.HOUR_OF_DAY


Calendar.MINUTE
Reply:http://www.java.com/en/download/installe...





http://www.time.gov/timezone.cgi?Pacific...


How to have access to system's clipboard through java programing?

Hi, i am making a text editor in java language. Now to provide cut copy and paste functions i need access to system's clipboard. How to have access to system's clipboard. Explain me in detail and if possible please provide java coding.

How to have access to system's clipboard through java programing?
Is this an AWT program? If so, you can use java.awt.Toolkit.getSystemClipboard(), which returns a java.awt.datatransfer.Clipboard.





For more information on using the data on the clipboard and copying data to it, see the article in the third link below, which explains the whole concept of DataFlavors.

brandon flowers

How can I enable Java Script on my BT Yahoo browser, my tools>options menu does not include a content option




What is the best java compiler and easiest to use?

I currently have JBuilder and do not like some of the features on it ... are there better ones out their that are free?

What is the best java compiler and easiest to use?
if u want to know about IDE than easy one is the NetBeans or SunCreator. But if u want to be an professional or want to know ins and outs of project structure and project flow then use Eclipse. Its the worlds most popular IDE.
Reply:Java is generally not a compiled language (there are exceptions, like GCJ), so I think you're asking something different. A compiler takes source code (could be in notepad) and turns it into machine code (zeros and ones). JBuilder is an IDE (integrated development environment) that provides a text editor, syntax highlighting, command completer, debugger, etc. An alternative you might consider is Eclipse. It is probably the most widely used Java IDE, and it's a good skill to learn, as many commercial enterprises use it.





Other options include NetBeans and JetBrains, though I haven't used them so I can't speak for them. Check the Wikipedia articles provided below.








If what you REALLY want is a Java compiler (judging by your question it is not what you really want), check out GCJ (GNU Compiler for Java). It is the 4th link I give below.
Reply:http://www.netbeans.org/
Reply:java compiler? of course Sun Microsystems Java...


you're asking for the ide or editor, JCreator is the best


How do I make the connection between a file with a Java script and a html file?

I want to use a script in a html page, but I want to put the script in a different file. What extension should this file have and what to I write in the html file to make the connection?

How do I make the connection between a file with a Java script and a html file?
Very easy, the file extension would be .js





and you would need to put the following line in between %26lt;head%26gt;%26lt;/head%26gt; tags in the html file:





%26lt;script language="JavaScript" type="text/javascript" src="file path"%26gt;%26lt;/script%26gt;


Can I use a chunk of styrofoam to attach java moss to instead of cork? Is this safe? I was just wondering,?

Cause I like the idea of tieing java moss to a piece of cork. And I know styrofoam floats! I tried to let java moss float around freely in the tank, but after a few hours it sticks to the intake valve of filter!! Any suggestions truly appreciated!

Can I use a chunk of styrofoam to attach java moss to instead of cork? Is this safe? I was just wondering,?
Styrofoam is terrible and the Moss won't attach to it. I just made a Moss Cork float and it was really easy. I made a pictorial for this site. Check it out! It's at a site called fishless cycling (type the two words without a space and add .com) under the "Other" section, within that, there is a "Plants" section. The thread is called Taiwan Moss Floating Structure. It is really easy to figure out. Styrofoam will disintegrate and leave little white pieces of crap floating through the tank.





Nosoop4u





Sorry for the directions, but Y!A won't let me post links! :' (





I think I can email you the link... I'll try. But I can't because you don't allow it! You'll just have to follow the directions I gave you...
Reply:the styrofoam might disentegrate and get all over the tank/in the filter
Reply:I heard that styrofoam, (especially when heated) will deteriorate and cause cellular damage in humans. that's why people don't use styrofoam cups anymore. If it's dangerous for humans, it should be dangerous for fishes (generally speaking).
Reply:Hi, I remember answering your question about java moss placement a while back and I had suggested the cork method. Do you remember? I'm only here for revenge because you didn't give me best answer on that one!!! :( HA! HA! HA! Just kidding :)





Really though, don't use styrophome, a cork is really best if you can get one. You don't drink wine? I always have a stash of corks in a drawer for some reason, but then I do drink wine. Well it shouldn't be too hard to come up with a cork I wouldn't think.





How did your moss mats turn out, or did you make them? That was a good suggestion too, made by the one who DID get best answer on that other question. HA! I might actually try that myself if it works well.





*Hey NoSoup: Why does answers not let you use links? I can post links last I checked. Is this new for everyone or are you just special?

video cards

How do you Enable and Disable Java Script on A Computer?

Everything was working ok on it yesterday and today when I try and rate a question or answer it tells me that Java script is not enabled..What can I do to fix the problem??

How do you Enable and Disable Java Script on A Computer?
Re- download one.
Reply:I don't know how to turn it on or off in Internet Explorer, but in Firefox:





1. Click on the Tools-%26gt;Options menu item.


2. Click the Content page.


3. Click the Enable Javascript checkbox.


4. OK out of everything.
Reply:Javascript runs within the browser. You would need to go into Firefox, Opera, IE, etc. and set the option to enable or disable Javascript.





You cannot do it at the operating system level.


Where can I download Mobile Java J2ME for a PDA?

I hve a Hp ipaq running windows mobile, is there any place that I can download java for a mobile device such as this?

Where can I download Mobile Java J2ME for a PDA?
http://java.sun.com/javame/downloads/ind...


I need someway to automate TACL commands using JAVA any suggestions?

I have to interact with a Tandem. I am currently using a program called Outside view to execute TACL commands and run scripts. I would like to use JAVA to automate these tasks. I have tried setting up a telnet session through java and have been unsuccessful. Any good ideas appreciated.

I need someway to automate TACL commands using JAVA any suggestions?
Sorry, I know java, but don't have any Idea about "TACL commands" or "Tandem". R u trying to run some kind of native program from within a java application?





Plz explain very clearly so that we humble java coders can understand. U r welcome to mail me ur problem. I like uncommon problems.


How can I save a Java applet from a website?

I would like to save a Java game from a website to my local machine.

How can I save a Java applet from a website?
if you dont have how to download it....only way you can play it again is to save the ling on your favorites

sd cards

Does anyone know where I can purchase Christmas Moss or Java Moss?

I live in Massachusetts. Is there an online store where you can buy moss in large quantities?

Does anyone know where I can purchase Christmas Moss or Java Moss?
Try this site...aquabid.com


How do you get Java on Wii?

I'm trying to play internet games on Wii but I need Java to play some of them. How do I get Java on my Wii? I tried the Java website but it won't work!

How do you get Java on Wii?
Sorry, but right now there is no way to install java or shockwave or anything on the wii. Right now the internet option on the wii is kind of low-tech and has a few flaws.








You're on the wii right now, aren't you!
Reply:you can't get Java you can watch youtube videos and some more video but you can't get Java. The wii doesn't support it.
Reply:Wii is not Java friendly at the moment, sorry to disappoint you.


What did Java used to be like in early 1800s?

It's for S+E assignment. We have to pretend to be convitcs in Australia and we are escaping to Java. We have to have a few reasons for why we want to escape there. Do you know why they would want to escape there?


P.S. Forget about the fact that a convict in those days probably had no idea of what or where java was, it's just a silly assignment

What did Java used to be like in early 1800s?
Java in the early 1800s:


http://en.wikipedia.org/wiki/Anglo-Dutch...


http://en.wikipedia.org/wiki/Java_War





This is for general Indonesian history:


http://www.gimonca.com/sejarah/sejarah04...


How to compile java program into windows executable?

Please suggest websites or a tutorial on how to accomplish it. I saw something about some batch file but nothing conclusive.

How to compile java program into windows executable?
Here's a great step by step doc. It keeps the details to a minimum. There is much more power available in jarring a java file.





http://csdl.ics.hawaii.edu/~johnson/613f...





Another POV:


If possible, collect all your .java files and .class files (and anything else you want to include) together in a single directory.


Using a text editor, create a file (say, myManifest) containing the following lines:





Manifest-Version: 1.0


Main-Class: MyMainClass





where MyMainClass is the name of the class containing the main method you want to use.


From the command line, execute the command:





jar cvfm myResult.jar myManifest *.java *.class





where myResult.jar is the jar file you are trying to create, myManifest is the file you created in step 2, and everything else is the files you want to include.








Good luck.
Reply:are you sure you need a windows executable? if you create a Java ARchive (JAR) correctly, a windows user can double click it and it will launch as if the application is an EXE file.
Reply:Check out JSmooth. It will allow you to put any java into an exe wrapper.
Reply:You need to buy a compiler, or find a free one. Here is more info on why you shouldn't compile

plants

When trying to construct a rectangle in java, what is the import method i have to right down?

I put down "import java.awt.Recangle;"- not in quotations but just like it is in the editor. Every time i try compiling it it says Rectangle is already defined in this compilation unit. Also, if you can what is the import method for random numbers. I got "import java.util.random;" Please help me ASAP!

When trying to construct a rectangle in java, what is the import method i have to right down?
you've now imported the "library" to construct a rectangle...





the library has methods, variables, ect to make the code reusable and simple to work with...





You'll need to create a rectangle object and then display it on a "canvas"...





Good luck... could you possible post your code so we can help you more specifically... your question is very vague... for example... which editor? put down? it would seem you have taken a giant leap and probably need to back up and learn a little more...
Reply:I don't think you can right anything down. You'd have to write it down.


Firefox closes whenever a site has any java application in it?

If a site has anything java on it, I get the "firefox has encountered a problem and must close" error. I have already tried uninstalling and reinstalling the latest versions of both firefox and Java Runtime Environment. How do I fix it?

Firefox closes whenever a site has any java application in it?
Ur browser might be corrupted





try resetting the settings by going to prefernces / TOOLS


or cna uninstall that and reinsall it .





also if wants can try with another browser


IE , opera are jsut few eg.


If you put a java porgram in the startup folder, can you get it to run without using command prompt?

For example: If I made a program in java that I wanted to run on startup it wouldn't work without you going to command prompt and giving it the run command right?? I'm not sure but that's what I want to do. Is it possible?

If you put a java porgram in the startup folder, can you get it to run without using command prompt?
You could try typing the command you want run in notepad and saving it as a .BAT file, and put that in your startup folder.





Open notepad and type somthing like:


java -cp "c:\java_program_location\" JavaClassFileName





Then save as "YouPickAGoodName.BAT".


Just make sure it ends in .BAT (don't forget the dot)





Then stick this .BAT file in your startup folder. Running the file is the same as typing the line in it at the command prompt and pressing ENTER.


How do I sort an arraylist of objects in Java?

I am making a address book in Java. I take the user input and store it into an object called entry. I then take the object and add it to an arraylist called entry_list. Each object has a method called getLName() that recalls the last name of the entry object. How would I sort the arraylist by last name?

How do I sort an arraylist of objects in Java?
Wow - it's been a while, but I did this exact thing in college, and if I remember correctly, I had to basically "create" my own sort method, becuase arraylists hold objects which don't lent themselves to sorting too well. Now, I can't remember if their is a native "sort" method for arraylists in Java ( I don't think there is). If there is, it would have to be overridden. If not, you would need to create a method from scratch, and pass the arraylist to it. In the method, you would need to go through each object in the list, and do sorting algorithm based on the last name property of each object. I don't have acccess to my source code now, but if you get stuck, let me know, and I will check it out when I get home. Good luck.
Reply:Take a look at this example from Java Almanac. If you work with a Collections object, you get the sort() method.
Reply:check this out:





http://mindprod.com/jgloss/sort.html

id cards

How do I modify my computer to work with Java Applications?

I am a "newbie", admittedly. This is the first computer I have ever had and everything I know is self-taught. I don't know how


to modify my computer to either reinstall Java Runtime


Environment or to upgrade! HELP!!!

How do I modify my computer to work with Java Applications?
Just search Java, goto the site and download it. It doesn't take long and after installation you can play any games or goto any chatrooms run by Java.
Reply:" http://www.java.com


/en/download/ ",





for the latest JRE
Reply:Go ahead, follow the link, and let it install. MS has gone out of their way to make java inconvenient because they lost a lawsuit for modifying the java code. After installing the plug-in. Stop your browser. Restart your browser and test it with this java games website (2nd link).
Reply:no need to do anything


whenever u wanna use "for the first time" a java applet on the web, it will ask u for the java runtime, if it is not there or not installed it will automatically install it for u or redirect u to the java website..


How to make page open in a fram using java script?

I need the code to make a page display in an inline frame "java script" code only cuz i have the script and the frame part is what's left. 10 points for who types the code

How to make page open in a fram using java script?
Use the TARGET attribute to specify which frame should be used to display the link. (The value of the TARGET attribute should match the value of the target frame's NAME attribute.) You can specify the target frame for a link (e.g., %26lt;A TARGET="content" HREF=...%26gt;) or for a form (e.g., %26lt;FORM TARGET="content" ACTION=...%26gt;). Also, you can use %26lt;BASE TARGET=...%26gt; to change the default target frame for the entire document (normally, the default target frame is "_self", the current frame).





Tell me if this doesnt solve ur issue:)


How do I make an image rollover in java script?

I don't have dreamweaver except for in school. Please provide detailed instructions of what I should do.

How do I make an image rollover in java script?
Ooo Hard to say. You should Googe search, and believe me you will find a tutorial or something to help you. Its difficult to explain this here.


What is the proper way to use a line printer spacing chart for a college Java program?

I cant find any help at all through internet. A good example would be helpful.

What is the proper way to use a line printer spacing chart for a college Java program?
I just use the comments feature ( java identifies comments by whatever follows \\ ) to summarize what each thing does, even for line printing. For example:





system.out.println("26 miles is " + feet + " feet."); \\ telling # of feet

flowers online

What code do I need to write in Java to allow me to calculate the total items (classes) held in an array?

I have a program which allows me to add a class "Episode" to an array within the class "Series" and remove the class "Episode" from the array. What code do I need to total the amount of "Episodes" held within the array?

What code do I need to write in Java to allow me to calculate the total items (classes) held in an array?
If you have an array named episodes, all you need to do to find out how many elements are in it is this..





episodes.size();





this tells you the number of items in the array.


How can you determine if there is a java script in an email?

1, Once determined that there is one, Can you 'turn it off or remove it?





2. Is there a 'fix' or work-around to keep it from messing up Lotus Notes?

How can you determine if there is a java script in an email?
well for starters javascripts are client-side script which means you can see it in the html source code, and usually javascripts are embeded in your email's html code, and right clicking on the page and viewing the source code would allow you to see the javascript. this is the manual-low-down-and-dirty method.





the easier method is just turn on the pop-up blockers.


there is a work around if your using, mozilla firefox you con just turn on the pop up blockers, or if there is a pop-up blocker in IE. if your turn on the pop-up blocker it will notify you that there is a javascript in the code and will prompt you if you wish to allow the blocked content.





how to prevent it from messing up lotus notes, im sorry i have no idea... i dont even know what lotus notes are... hope this helps!


Where can I buy a java rice finch near Houston Texas area?

I want to buy a baby java rice finch so I can hand feed myself. Petco or Petsmart have only adult finch they don't sell baby bird. I don't know if java rice finch is very hard to find in Texas, because I call some breeder and no one is selling this kind of finch. I am willing to travel to get one, as long as the location is in Texas.

Where can I buy a java rice finch near Houston Texas area?
http://birdbreeders.com/breederdetails.a...





They have java rice, and many others.
Reply:I sorry I don't know. I tried to think of a answer, but I could think of one. sorry :(