Friday, July 31, 2009

What is the function of java vertual and how is it installed?

Is it advantageous to have it installed?

What is the function of java vertual and how is it installed?
Is it advantageous to have it installed?


Yes. You will need it to run java programs in your browser or on your desktop.





What function does it serve?


The Java virtual machine is a bit like a translator. I'll explain.





Most software programs when they are created are written in a human readable code. Then a compiler and linker takes that code and compiles it into machine code. That machine code can only run on very specific hardware and operating systems. Programs Like Microsoft Office are an example. It has to be compiled to run on Windows. To run on a Mac it has to be recompiled use a Mac compiler.





Java programs are different. They aren't compiled into machine code. They are compiled into what's called, "Java Byte Code". When you run a java program, the virtual machine translates the Byte Code into Machine code.





The advantage of java is that you only have to compile and distribute one version of your program. If Microsoft office was created using Java, you would bye only one version of it and it would work on both your Mac, WindowsXP\Vista, or any other operating system that has a java virtual machine on it(Like Unix or Linux or your Mobile Phone). Instead, you have to bye different versions.





The disadvantage of java is that it comes at a price of speed. The virtual machine translator slows down your program. Though the speed keeps getting better with each release.
Reply:It allows you to run java programs in your browser without installing java SDK
Reply:Java Virtual it's a pluging that will run Java aplications on your machine, not necessarily Internet based aplications but is the common use of it.





Most web pages will telll you to download teh Java virtual once you get in there and you don't have it, providing direct links to the download installation package, but you could also go to their main website www.java.com the first thing you'll see it's the download link wich is free.

tomato plants

In Java if you do not explicitly declare accessor type for instance variable what accessor type is assigned?

For example if you have





public class Example{


int someNum;


}





What accessor type is assigned to someNum by the java compiler. Is it public or protected?

In Java if you do not explicitly declare accessor type for instance variable what accessor type is assigned?
If you use the default visiblity it is "package" visibility. Meaning that field or method is visible to other objects and classes in the same java package.
Reply:NetBeans will not let you assign an accesor to instance variables-- after the constructor, and that's logical, only class-definition variables need the degrees of visibility -- defined outside the constructor.





In your example, you have the default visibility accessor... meaning that only a class within that same package can see int someNum. Default and final are the other accessors -- like protected and private.
Reply:That's a good question. I didn't readily find the answer but it would be most logical for them to be private, so that they are only accessible within the class. That would cause the least upset if one forgot to declare an accessor type.
Reply:fields are private by default, but it's good practice to give them a type.


How do you download java games onto Samsung u700?

I live in singapore and i went through this tutorial thing.


But when i enter a code on the main screen, it doesn't let me install MIDlet and stuffs. Is it because of my country?

How do you download java games onto Samsung u700?
Hi there, im from singapore too!





First of all you must be a wap enabled user. Call your service provider to subscribe for it if you havent.





After you are wap enabled and If you wanna download games, go look for "Internet" in ur phone and look for "Bookmarks" and click on "Samsung fun club". Inside you can download lotsa cool stuffs. By the way you WILL be charged accordingly to the price of the games. It cost around a meal. :)





Im not sure about the Code you entered on the main screen. Maybe you can try to reset the phone and try to download again. Last resort you may wanna call up samsung care center and tell them your problem. But you shouldnt mess too much with the Code on the main screen, because some of them will affect the softwares of the phone it self.


Have been trying to play free games online but says i need java enabled or installed?

have installed java several times successfully, thats what the screen says but still unable to launch any free game sites.getting very fustrated with this. our computer uses vista. have been able to play before but as first of year have not been able to get any free game sites to come up.keeps saying there is a problem or mistake.please help .

Have been trying to play free games online but says i need java enabled or installed?
Well, you could try a couple of things.





First thing, I would reinstall it, but this time go to custom install and do a complete installation of everything. After this, I would restart the computer, even if it didn't ask me to.





If this doesn't work, I would try out another browser. You could download Firefox (www.firefox.com), and see if this makes it any better. Internet Explorer tends to get a lot of problems, and firefox is a lot better for the internet in general.





If the browser was the problem, I'd reinstall Internet Explorer, as there may have been some sort of spyware or virus that has caused it to act differently.


How do you enable Java Brower on your work computer if its blocked by a firewall?

I want to draft some fantasy sports teams and play poker.

How do you enable Java Brower on your work computer if its blocked by a firewall?
Ask your boss.
Reply:Do it on your home computer.
Reply:Go to your firewall settings and add Java Browser as an exception so that your firewall won't block it anymore.
Reply:I don’t imagine work (corporate) firewall would be able to block any particular browser, therefore assuming you meant „java” script in browser.


You could try combination of those things:


-Install and run this free VPN client: http://www.iopus.com/ipig/


-go to browsers options and disable “connect through proxy” (Internet Explorer: Tools %26gt;%26gt; Internet Options %26gt;%26gt; Connection (tab) %26gt;%26gt; LAN settings (button) %26gt;%26gt; “Use proxy server…” (take check mark OFF)





Be aware that reason for blocking scripts is to prevent network from infection from within and using scripts CAN BE DANGEROUS if you would ended up on maliciously constructed site). By bypassing firewall’s block you really breaching security of whole network.


About danger coming from script – listen to audition from this page (#7 20 minutes 50 secs, #38):


http://www.grc.com/SecurityNow.htm

petal

How do I grow java moss?

Right now I just have around a nickel sized portion and I'd like to know how I could grow it as fast as possible.





I need to know what is the best situation for it to grow under.

How do I grow java moss?
If you have cool water %26lt;28C, alittle light (not strong sunlight) and CO2 (DIY CO2 is good enough), plus alittle liquid fert for meant for aqautic plants.
Reply:unless you have a 5 watt lightbulb it will most likely grow. and fast. it kind of grows exponentially. the best thing to do is attach it to something and it will grow.





this video has a great idea for a clump of moss about 2/3 of the way through --





http://youtube.com/watch?v=bdbjjWuf8y0
Reply:Add some blackwater extract to your water...gives the traces of humic acid and creates the brackish water that java moss naturally thrives in. Give it a good amount of sunlight, but not direct light. That's about it. You can't really accelerate the growth of java moss by very much, but it does grow pretty fast on its own.


How do I calculate the difference between two calendar dates in Java?

if you are using Date objects, it's as simple as using the getTime() method... as in





Date x y;


...


long difference = x.getTime() - y.getTime();





otherwise, if you are using Calendar objects, the best way is to use the built-in compareTo() method. It takes another calendar object as argument:





Calendar x y;


...


long difference = x.compareTo(y);





either way will get you the difference in milliseconds.


if you need to do more complex comparisons (like w/ days of the week, etc.) then go to the documentation:





http://java.sun.com/j2se/1.5.0/docs/api/...





-cheers


How do i know my system is wakeup from sleep mode in java?

How do i know my system is wakeup from sleep mode in java .





or else, how can i catch the event of sleep mode, while System is going to sleep mode.

How do i know my system is wakeup from sleep mode in java?
what do you mean by 'my system is wakeup from sleep mode in java?'


if this is a question about java programming, you'd have a much better chance asking at a Java forum like this one: http://www.javareference.com/mvnforum/li...


Can I run a Java plugin off of a Xubuntu Live CD session?

I use my live cd on a ton of computers I dont own, and I cant download the java plugin because when using the live cd I have no access to any ROM. I am using a CD-RW, and my main question would be how to put the java plugin on to the cd so I can use Java Applets abroad.

Can I run a Java plugin off of a Xubuntu Live CD session?
linux mint has flash and java by default live cd balah blah u get it!

garden sheds

How do i read a whole line as a String in Java?

I am trying to implement a code using java that will take in a whole line of inputs as one String. However, the number of inputs is unknown to me. I heard about Scanner and the scanner.nextLine() function but can't seem to implement it well and falls into an infinite loop. Anyone knows how to better implement it or work around it?

How do i read a whole line as a String in Java?
You can use BufferedReader class to read a entire line





The below is a sample program to read a entire line from console...





I have written username you can input a long line ... It will just read the entire line... and assign it to variable username








import java.io.*;





public class ReadString {





public static void main (String[] args) {





// prompt the user to enter their name


System.out.print("Enter your name: ");





// open up standard input


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





String userName = null;





// read the username from the command-line; need to use try/catch with the


// readLine() method


try {


userName = br.readLine();


} catch (IOException ioe) {


System.out.println("IO error trying to read your name!");


System.exit(1);


}





System.out.println("Thanks for the name, " + userName);





}





} // end of ReadString class


How to write a Java program that reads a phrase from the input and outputs its words in reverse order?

The output should be on a single line terminated by a newline, and should only have the single spaces needed to separate the words. For example, if the input is


Data Structures and Algorithms in Java


the output should be Java in Algorithms and Structures Data


using recursion and the java.util.Scanner class for parsing the input

How to write a Java program that reads a phrase from the input and outputs its words in reverse order?
import java.util.*;


public class HelloWorld {


public static Stack stack=new Stack();


public static void main(String[] args) {


try {


String s="this is java string reverse ";


reverseString(s);


System.out.println("the reversed string value is ");


for(int i=stack.size()-1;i%26gt;=0;i--){


System.out.print(stack.get(i));


}


}


catch (Exception e) {


e.printStackTrace();


}


}


public static void reverseString(String s) throws Exception{


StringTokenizer temp=new StringTokenizer(s);


if(temp.hasMoreTokens()){


String s1=temp.nextToken();


stack.push(s1+" ");


reverseString(s.substring(s1.length()+1)...


}


else{


return;


}


}





}
Reply:Is there a stack function? First in Last out. Then store and retrieve the word.


I know this in Pascal and BASIC and it is a basic structure in computer science.
Reply:Without going into the input piece (which is easy) basically you want to take the input as a String.


Then you can do something like the following:





String input = "whatever I got from the input line";


StringBuffer backwards = new StringBuffer();


for (int x=input.length; x%26gt;0; x--) {


backwards.append(


input.charAt(x));


}


System.out.println(backwards.toString(...


How to define the internal frame in different file in java and how to call them in JFrame?

I am at present doing a project in which I need help I want to include more internalFrames in my Project as Child frames in different files and I want to connect them in a single JFrame and also I want to display other componets in that iternalframe and also I have the Jtree in which i am calling my internalframes.

How to define the internal frame in different file in java and how to call them in JFrame?
I didn't understand what exactly is the question, but try these two links that explain about JInternalFrame.





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





http://www.iam.ubc.ca/guides/javatut99/u...


How to get the result of a Select count(*) statement with Java ?

I want to get the number of rows returned (Select count * from [table] where employeeNo = ?). I just want the integer which will be returned, using java programming. I know how to do resultset etc if it is a regular sql statement but how should I capture just the count result?





Thanks

How to get the result of a Select count(*) statement with Java ?
Try "count(*)" instead of "count *". Then just getInt(1) from your ResultSet.

garden design

How do i keep from getting booted out of a java game lobby?

people have scripts they use to boot the whole lobby full of game players, a card game.

How do i keep from getting booted out of a java game lobby?
never had that happen! yahoo usually blocks script codes.Try using MSN vm instead of sun java.


Yahoo games, mail, and messenger, have conflicts with sun java. Rather then trying to work around them. Here is the easy and fastest way to cure them. These simple setting changes will fix 90% of all problems caused by java updates. While you need java for most yahoo sites, you do not need sun java’s virtual machine to launch them.


You can set default here! ... click start / settings / control panel


Now open the add / remove programs folder


Click on set program access and defaults


Choose Microsoft's Virtual Machine java ... NOT... Sun java.





Increasing your virtual memory helps with the freezing/getting booted problem. You can increase your memory by going to start button, settings, control panel, system, advance tab, performance, advance tab, virtual memory, change it, make it 900 kb or higher, click set then ok


How to create table in Java Language?

I am beginner in java programming. Don't know how to print table of a give number using loops. Please write me the program with source code.

How to create table in Java Language?
Hi friend. I think this code is useful for you.





***********************************





class PreparingTable{


public static void main(String[] args) {


int a=25, b=1;


System.out.println("the table of "+a+"= ");


while(b%26lt;=10){


int c = a*b;


System.out.println(c);


b = b+1;


}


}


}





***********************************
Reply:Do you want api table or simply printing in table format?


if simple table format then here u r





for(int i=0;i%26lt;5;i++)


{


for(int j=0;j%26lt;5;j++)


{


System.out.println(" "+j);


}


}
Reply:If it is for multiplication table, then use the below code(This is for multiplication table number 15). Please change the value of the MULTI_NBR to the required multiplication table number.





public class Multiply {


public static void main(String[] args) {


int MULTI_NBR = 15; // change this number for the required value


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


System.out.println(MULTI_NBR + " x " + i + " = " + MULTI_NBR*i);


}


}


}


How do you create a Java program with BlueJ that can run on a computer without BlueJ?

I need to know how to make a Java program that I have in BlueJ so that it can be run without BlueJ. Any help is appreciated.

How do you create a Java program with BlueJ that can run on a computer without BlueJ?
make a jar file from blueJ





the jar file can be run with only double click without need the blueJ


sorry my poor english


How to define the internal frame in different file in java and how to call them in JFrame?

I am at present doing a project in which I need help I want to include more internalFrames in my Project as Child frames in different files and I want to connect them in a single JFrame and also I want to display other componets in that iternalframe and also I have the Jtree in which i am calling my internalframes.

How to define the internal frame in different file in java and how to call them in JFrame?
Check out JSplitPane. I think that might be what you are looking for. Good luck!

flower pictures

Can i install new games and applications on a mobile with java but no os?

im planning to get nokia 3110. its java enabled but has no os...wondering whether i can install new appln on this phone?

Can i install new games and applications on a mobile with java but no os?
The nokia 3110 is a series 40 symbian OS. I should allow java apps to be installed, but if you carrier locks it then it might not work so make sure its unlocked and unbranded phone.


How to shrink java project to get rid of unused classes and packages?

I use open source application, by defining the jar as a classpath. In in my main class I use only one feature from a number of others the open source application provides. I tried to determine the classes and got mixed in the huge amount of classes and packages. Tried obfuscators but got error messages. Has anyone experienced such issue before and how resolved. Does Eclipse or Jbuilder provide any serious tool for that except viewing class trees, etc.? Thanks

How to shrink java project to get rid of unused classes and packages?
Well, there is a very old project call JARG (see URL below) that apparently has this capability.





The one thing to note though: Java code can dynamically generate strings and execute them. That means that there is no way for any tool to be 100% sure ahead of time what classes will be needed at runtime (for example, my code could ask the user to enter a classname and a method, which the program could then load and invoke).


How do you find numbers in a string in java?

For example, if I wanted to find the numbers in "There are 47 cats at the house", I would come out with 47...How do you do that?

How do you find numbers in a string in java?
Using regular expressions. Been a while time since i used Java but something like.





Pattern pat = Pattern.compile("\d+");


Matcher match = pat.Matcher("There are 47 cats at the house");


int cats = match.group();


What is the java or html code to make a webpage a default/home page automatically onload?

I am using yahoo site builder, need to make it the users home page automatically onload because I am giving on line classs to senior citizens and they call me often to just ask how to get to my website when they have been their numerous times already.

What is the java or html code to make a webpage a default/home page automatically onload?
You don't need code just call the page index.html


and it will be the default page to open at the address.

credit cards

How do I get up and running to program in Java?

I'm a .net programmer using Visual Studio I'm familar with J# never programmed it but I want to code in just good old Java. I"ve taken courses but anyone know how I setup a complier to do so I've attempted to it's not an easy setup like visual studio. It, was all CLI and I ended up not even get it working.

How do I get up and running to program in Java?
If you want a visual-studio-like environment, go to java.sun.com to get JavaSE (Standard Edition) as outlined by others here. After installing it, go to www.eclipse.org and download/install the latest version of Eclipse.





Eclipse is a free shareware development environment brought to you by your friends at IBM. It is very robust and has an almost limitless number of plugins that can be found for free and for purchase out on them there internets.





There is a tutorial on the eclipse website and the equivalent of a tutorial in the help docs, but even without that you should not have to look to hard to find your favorite MSVS development features.





Give it a whirl.





CAVEAT DOWNLOADOR: Eclipse is not the only free dev environment for Java, and there are some who would say it is not the best dev environment for Java. However, most Java developers would probably agree (some grudgingly) that Eclipse is the best free development environment for Java.
Reply:You keed the JDK, Java Development Kit:





http://java.sun.com/javase/





You compile program with JAVAC. To run the compiled program, you use JAVA.
Reply:Go here: http://java.sun.com/javase/downloads/ind... and download the JDK which contains the runtime environment (JRE) and the compilers%26amp;debuggers
Reply:If you just want to do it command line, just download the JDK as mentioned. Though configuring 'path' and 'classpath' in Windows can be a headache for newbies (if you have OS X it's already setup).





%26gt; javac MyJavaApp.java


%26gt; java MyJavaApp





too bad it won't be that simple when you first try it ;-)





If you are use to VS, then download any number of Java IDEs. NetBeans is fairly simple and free.





However, if you are already doing .NET programming, just switch to C#. There are a lot of things about Java you are going to hate compared to C#. C# fixes a lot of Java's shortcomings. Java JUST got enumerations but still does not have accessors, structs, pointers. And don't get me started on exception handling in Java - what a hack job.


Every time i try to play a game that has java in it something pops up that says java plug in fatal error?

I tried uninstalling all my java things and then reinstalling the new edition of java, but the same thing happens.

Every time i try to play a game that has java in it something pops up that says java plug in fatal error?
If you have Yahoo Messenger send an IM to


mcs_home_page


They are a free tech support company.
Reply:sounds like you have what we call a registry bug...


only do this if you are familiar with the registry......!!!!!!!!!!!


search your registry in regedit for any mention of (java)


delete any link in the registry pertaining to java and then restart your computer... once restarted goto the java web site and download and install the bete version..


immediately restart upon installing and you should now have done away with the java bug

brandon flowers

How do I get java script onto my computer?

I need java on my computer to be able to look at virtual pictures of an apartment, and I don't know how to get it on the computer.

How do I get java script onto my computer?
In addition to installing the components for JavaScript as the other poster suggested, you will also need to make sure that you have it enabled in your Internet security options. To do that, go to 'Tools %26gt; Internet Options %26gt; Security %26gt; Custom Level' while your browser is open, and make sure that the 'Enable JavaScript' option is checked. If you do both of these things, you should be good to go.
Reply:Go to http://www.java.com, then download the version of java for your OS.


What would be the best online university to become a Java programmer???

I am currently a software programmer, but I am wanting a bachelor's degree majoring in Java programming. I want to be able to get this online. What would be the best one?

What would be the best online university to become a Java programmer???
There are quite a few online universities and distance learning universities that offer a Java Programming degree. One of the more famous ones is "University of Phoenix" (http://www.phoenix.edu/) which has an actual campus and an online program as well. You can check out many others at the provided link.


Convert a word into an arraylist of characters in java?

In java I have an arraylist of words, and then I have a method which returns one of these words at random. I then have another method which creates an arraylist of characters. How can I take the random word generated and convert it into the arraylist of characters?

Convert a word into an arraylist of characters in java?
nameOfStringHere.toCharArray();
Reply:Why can't you just feed the value of the first function to the second one as an argument? (Sorry I'm a bit confused.) Maybe elaborate a bit...





Or is this what you're looking for: http://www.cs.princeton.edu/courses/arch...


Is it possible to declare an empty array in java?

Is it possible to declare an empty array in java?


So Object[] array = new Object[0] is possible?

Is it possible to declare an empty array in java?
Object[] array = null;





Object[] array = none;





Object[] array = never;
Reply:Yes. There is no reason why you cannot create an array with 0 elements.
Reply:You dont do that. You do this instead:





Object[] array = null;
Reply:Yes you can.





In this article, the author makes an interesting case for using zero arrays in Java.





http://www.javapractices.com/Topic59.cjp

video cards

How to set the text file size dynamically from java code while writing to a file using OubjectOutputStream?

I have written some contents into a text file ie to a notepad in java. How can i set size for that file? That is I have to remove the empty space in the notepad after i wrote the contents in it. Bec while printing that text file using dot matrix printer the paper is scrolling till the end of the file. The printer should stop after it reach the end of file. It shoud not scroll the empty paper. Plz help me..

How to set the text file size dynamically from java code while writing to a file using OubjectOutputStream?
A text file normaly contains an end-of-file marker at the point at which the file ends.


When you open this file using any text editor (say - notepad) - this character is not viewable.


Now when you print this file - this end-of-file character is send to the printer, which when sensing the same generate a form-feed which will cause the printer to scroll to the next page.





Also in dot matrix you can define paper-size


Check out:-


http://support.microsoft.com/default.asp...
Reply:get some sample are try


http://www.planetsourcecode.com


I want to learn java from scratch. How do I go about it online?

I desire to know java programming language. Can you please link me to a website where java is treated from the scratch and also where i will be able to download the java compiler free of charge.


Also, you should pls give me step by step procedure for installing the compiler on my system. I want websites addresses apart from java sun website

I want to learn java from scratch. How do I go about it online?
First - Download and install the Java JSDK 1.5 from


http://java.sun.com


Install it





Then download a good IDE (Integrated development environment). Download eclipse from


http://www.eclipse.org


It is a zip file extract the zip to c:\eclipse and run the eclipse.exe





You use help to see how you can start writing code in that. JavaRanch is a very good Java forum:


http://www.javaranch.com





Head First Java is a very good book for beginners. You should buy at least one book so that it can guide you.
Reply:Also, you may find a very helpful site (Interactive Java %26amp; JDOM Online Tutorial) here:


http://www.topxml.com/tutorials/main.asp...
Reply:sun.com
Reply:Start with this site. www.java.com
Reply:Teaching yourself Java online would be quite a challenge if you have not done any programming before, but it is possible if you are determined.


Try doing a google search with "java beginners" and you will find lots of sites to visit for easy tutorials. One example is http://www.apl.jhu.edu/~hall/java/Beginn...


To get started with compiling you will have to download the Java Development Kit, this site has a link and also has instructions in setting the class path http://duke.csc.villanova.edu/jss1/javaR... Be warned that the download is quite large!


A good program to use for writing and compiling java programs is JGrasp (I found with this program that it wasn't even necessary to set the class path, it was done automatically). http://www.jgrasp.org/


I have a Java fern and was wondering?

I own two java ferns and they seem to be growing roots and leaves off of the regular leaves, can you tell me if the new roots and leaves will fall off on their own or do I have to pick them off and replant them into the gravel in my tank.

I have a Java fern and was wondering?
Just bend the leaf over and put a piece or two of gravel on it. The new little plants will detach themselves in a few days to a week. Or if you like you can cut off the leaf and cut each little new plant away from the leaf. It's better to allow them to detach by themselves, but this can work too.





MM
Reply:The new growth is a daughter plant. It will grow attached to the leaves of the mother plant until it is ready to be rooted itself at which point it will release and drift off. If you wish, you can replant the daughter plant, but I would wait until it releases itself.
Reply:well.. i have a java fern and i hand the same problem. and now one new what to do. so i tried both and you can do both because they both work.they will fall off on there own. but you also can pull them off and replant them.
Reply:wats a java fern?


I need to make a better cup of coffee. How do I make rocking java in my Krups?

Mojo points out I should probably make it at home. I need to save money and the aggrivation of the snooty Barista's. How do I make it just as yummy? My house guests will appreciate your help.

I need to make a better cup of coffee. How do I make rocking java in my Krups?
Store opened or bulk coffee in an airtight, opaque container and store at room temperature for up to a week (never freeze beans).


Grind coffee as close to brewing time as possible. For drip method, grind in blade style grinder for 15 to 20 seconds. For French presses, grind for only 10 to 12 seconds.


Regardless of method, brew using 2 heaping tablespoons of coffee for each 6 ounces of clean (filtered or bottled), cool water. If you prefer a milder cup, brew to full strength, and then dilute with hot water. Brewing with too little coffee will result in over-extraction, and that means bitterness.


If you really want to taste the subtle nuances of regional coffees, consider a gold mesh filter heating water to 185 degrees.


When purchasing a coffee maker (either manual or electric), look for a model that brews into a thermal carafe rather than a glass pot designed to sit on a heating element. Continuous heating of coffee leads to bitterness.
Reply:Go with Mojo on this! He completely nailed that answer, if he wouldn't of said it, I would've. Spot on answer.





I would like to point out that donuts are a wonderful accoutrement.
Reply:(1) Hotter





Warm everything up beforehand so that nothing chills the brew.





(2) Stronger





Put so much in that you're pretty sure you're overdoing it





(3) Longer





Don't rush it; keep it warm and wait till the aroma hits, then serve it up and enjoy.
Reply:I guess this Krups is an automatic coffee maker? Then be sure that the coffee you get is ground for that type, #1.





Then buy good coffee - not the less expensive stuff like Folger's and Maxwell House. You cannot have great coffee without great beans.





Then you'll have to experiment with how much ground coffee per amount of water you consider a "cup." Usually, it is a rounded tablespoon per 6 oz of water, as a basic start.





Then, make sure you make it with good water and start the water cold.





You have no choice of brewing temperature with automatic coffee makers, but that's ok, because the water going into the grounds is not boiling. Good coffee is not made with boiling water - it should be 190 degrees F.





Good cuppa coffee = good coffee grounds in a good amount made with good water at a good temperature.
Reply:blah
Reply:Make it strong. Use lots of grounds and COLD water to pour through the coffee pot!! And buy Folgers "Gourmet Supreme" coffee grounds instead of classic crap.

sd cards

Calculating the difference between two times in java?

hi, i'v got two times and i want to caculate the differernce between them. they are both Strings so will i have to convert them into milliseconds first or is there a way to do the calculation directly?

Calculating the difference between two times in java?
Here I was thinking that you were asking about two different times on the island of Java, in the Republic of Indonesia. Based on a time zone map, the entire island is in the same time zone, same as Christmas Island, Vietnam, Laos, Cambodia, and Thailand.


http://upload.wikimedia.org/wikipedia/co...





But based on your further description, it seems that you are calculating times within the java computer programming language. That's completely different... I'd probably start with the Java tutorials: http://java.sun.com/
Reply:First you have to do parseInt to get it into an integer and then do the calculation. You can never do a calculation when the number is stored as a string.
Reply:It might not be easiest way, but I'd splint the Strings into integers, create GregorianCalendar objects, convert to longs (milliseconds), and then subtract. Then you've got a bunch of % operations to get back into sensible times.


In java, How can I display the contents of a text file in a textarea using the open dialog box?

Using swing components I created a text area and a butten named 'open'. When I click the 'open' button an opendialog box should appear and thus I can select a text file. How can I display the contents of the file into the text area? Can it be done only with the concept of files only? If you know please wite the source code.

In java, How can I display the contents of a text file in a textarea using the open dialog box?
Using the opendialog box will return the name and path of the file, then use it accordingly. PS I've not checked this code works so there may be the odd typo in here.





String allText = "";





String filePath = "c:/folder/file.txt";





BufferedReader r = new BufferedReader( new FileReader( filePath ) );





String line = r.readLine();





while ( line!=null ) {


allText += line;


line = r.readLine();


}





r.close();





yourTextArea.setText( allText );








This should get you along the right tracks
Reply:Look up JFileChooser and limit the selection to files instead of directories. You will find more information if you google about Jfilechooser. You can used buffered reader or something similar to read the text and use the set Text in text area to the text read by the reader.


Where can I find people with HTML, JAVA, and Dreamweaver experience to help me start a Web based business?

Looking for Business partners to help me start this business. I have the business savvy, but I need webmasters to handle the technicial end.

Where can I find people with HTML, JAVA, and Dreamweaver experience to help me start a Web based business?
try dice.com or hotjobs.comj or monster.com
Reply:you can post a ad on myspace carrers


Why are there so many Java updates on my computer, why are they so big, and do I need to keep them?

I'm not even really sure why I need Java, except that apparently I do.





So I was going through trying to clean up my hard drive and I noticed that there are about six or seven Java Runtime Updates, and they are all much, much bigger than the rest of the programs in my list. What can I do about this?





Thanks!

Why are there so many Java updates on my computer, why are they so big, and do I need to keep them?
Get Java 6

plants

How can i transfer my java applications to a branded sagem my401x via bluetooth?

I've got a ES-388 bluetooth dongle and i'm trying to transfer the java applications i've created to my mobile phone. It seems that the file transfer service is blocked for java applications since i can transfer multimedia files and syncronize the contacts.

How can i transfer my java applications to a branded sagem my401x via bluetooth?
Sounds technical. Good Luck....


Where can I find a tutorial to create a nim game in java?

I have to create a GUI version of Nim in Java. I have been doing Java for a few months and finding it a struggle. Is there anywhere online that offers a tutorial on creating a GUI Nim game or offers any other help to start me off.





Thanks.

Where can I find a tutorial to create a nim game in java?
Found this, I just searched for "GUI Nim game" in Google and this was the first link, looked useful.


http://today.java.net/pub/a/today/2004/0...


How to keep the aspect ratio on a Java GUI window?

I'm coding up a GUI in java using swing and java2D and would like all the components within the window to expand or shrink down in relation to the size of the window. What's the best way to do this?

How to keep the aspect ratio on a Java GUI window?
Use an appropriate Layout such as GridBagLayout or SpringLayout





example:


Container contentPane = jframe.getContentPane();


contentPane.setLayout ( new GridBagLayout() );





// x y w h wtx wty anchor fill T L B R padx pady


contentPane.add( myPanel, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets( 10, 10, 10, 5 ), 0, 0 ) );


contentPane.add( myPanel2, new GridBagConstraints( 1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets( 10, 5, 10, 10 ), 0, 0 ) );





I just read your additional note. You also would like labels, etc. to be expanded as well. Hmm, I don't know of anything that will do this automagically for you. You could extend some of the components to take hints from the layout and resize appropriately. For instance, you may choose to enlarge the font when you determine more whitespace is available due to a window resize. I'm not aware of existing component that will do this for labels. Proportional fonts are a bit tricky to get this right. Actually, if memory serves me, I once did something similar. It was like "trial-and-error" programmatically. Off screen, I would draw the character string in the estimated font size and redraw down until it fit in the allotted space with the desired margins. Sure seems like a lot of trouble to get these dynamic labels to look good!


Where can I buy loca moca java energy drinks in bulk?

I have found the drink 24 pk for 57.00 + 9.00 shipping.. Does anyone know where to find a coupon?

Where can I buy loca moca java energy drinks in bulk?
Wow. That's more expensive then they are in the stores.





Wait until they go on sale at your local grocery store. Then, ask them to special order a full case for you. Buy the full case at the sale price. Java monster is on sale at one of our local chains right now. Stocking up when they're on sale will still be expensive, but $40 a case is WAY better then the $66 you'd be paying. You could get a case at regular shelf price for less then that.
Reply:I would like to know the same thing. Thanks

id cards

How to create a tree view in displaying the hierarchy of classes,methods,variables in an editor using Java?

I am developing a multi language editor for C,C++,java. I am developing this tool using Java(Swing concepts). I want to create a tree view in displaying the hierarchy of classes,methods, variables that are involved in the file on the left side of the editor as like in other editors such as JCreator,netbeans, etc... Is there any source code available or any solutions?

How to create a tree view in displaying the hierarchy of classes,methods,variables in an editor using Java?
Can create tree structure using JTree component and java Reflection API


What causes Java Script to become disabled?

Every once in awhile I get a message on my computer screen stating my Java Script has been disabled. I have changed nothing. I log out and sign back on and it is back to normal. Why is this happening? No one apparently seems to know why it is happening cause I have asked this question 3 times now and have not received any answers.

What causes Java Script to become disabled?
It's because no one know. Need more info like what kind of OS you're running, anti-virus? firewall ? browsers?......etc..My guess is that one of the security software on your PC is doing it. You need to find out which one. Check your browser Java settings everytime you use it or startup your PC to see if it's changed. You also want to download the latest version of Java since the newer version may not have this problem. I believe that the latest Java is Version 5 Update 10.
Reply:Ted was right on the part that you need to give information about OS, browser etc. Though Javascript != Java, hence if javascript is not working on your browser then it could be possibly due to the fact that javascript has been disabled in your browser. Unless you give more information it is difficult to figure out what could be the problem.


In Internet explorer, you can find the setting at Tools%26gt;Options%26gt;advanced. Or you just click on "restore default"


and then restart the browser, and see if that helps





--


Ck


http://www.gfour.net


Other than Java and C/C++, what would you recommend in programming career?

I need to move up from IT helpdesk cr*p. What high level programming language would you recommend other than Java and C/C++.

Other than Java and C/C++, what would you recommend in programming career?
Get cracking on SoA - it's the next big thing!


What are differences and comparisons of HTML and Java programming?

Hi,





I was wondering if you could possibly tell me some similarities and differences between HTML and Java programming?





Thanks for your help!!

What are differences and comparisons of HTML and Java programming?
To be honest, there are very few similarities between HTML and Java.


HTML is what they call a "markup" language, and is an "interpreted" language, not a compiled one like Java. Basically, all HTML does is define the appearance and layout for webpages. When a page is loaded, the browser "reads" the HTML for the page, and it tells it where to put the various elements, what colors to make them, etc. It is not capable of performing any kind of logical checks, calculations, or data manipulation - it just defines appearance.


Java, on the other hand, is a full blown, 3rd generation programming language, capable of performing sophisiticated data manipulations and calculations. Java is a compiled language, meaning that before a Java program can be run or redistributed, it must be "compiled", which basically turns the code into a language that the computer can more easily understand.


Typically, HTML is used for the "front end", and Java is used for the "middle tier", connecting to a database at the "backend". Hope this helps a little.
Reply:HTML and java are completely different.





HTML is a markup language .. i.e. it just defines how the data must be represented which should not be confused with a programming language. You cant program any logic.





whereas Java is a programming language where you can actually provide some type of logic.
Reply:Other than both of them being object oriented programming languages, they barely have anything common.





Differences that come into mind first:


1. HTML is strictly front end language, Java is not


2. HTML is a script - it gets compiled/parsed on the fly by the browser while Java is pre-compiled into bytecode prior to become usable


3. HTML is only usable within a browser, and can barely do anything other than displaying info passed to it while Java is capabale of data processing of virtually any complexity.


4. Pretty much everything else...

flowers online

How do I transfer a java game that I have on my PC to my mobile?

I have connected my mobile to my PC and I have installed the phone tool software but I don't know how to transfer this file onto my mobile. I have a motorola V3 phone.

How do I transfer a java game that I have on my PC to my mobile?
It depends on your service provider. You cant transfer it by cable (normally). If you do NOT have Cingular, then you can do so using a special program. Send me a message for the website info for it. If you DO have Cingular, then its a 50/50 shot that the program will work once installed on there. It all depends on the version of software and how old the phone actually is. Send me a message. I will try to help out.
Reply:You cant transfer a game runnable on your pc to your mobile.





java app on your pc run on top of a JVM (not for running midlet)


java app on your mobile run on top of a KVM (support a kind of java app which is called midlet.





However, if you have written some java midlet (or downloaded some java midlet) which is runnable on the mobile emulator on ur pc, you may try download it to your mobile using bluetooth service.





:)


How can I cast a String variable value into a double variable in Java Programming?

I spent all day to figure this out %26amp; I get an error when trying to compile. I am trying to write a code using Java Programming. The code bascially gets a value from the user and does some calculation and prints out the result. The value that I get from the user should be String and I should cast it into double variable, how do I do this? Thanks a bunch!!

How can I cast a String variable value into a double variable in Java Programming?
hello, for java programmers it is very much easy. u r also trying to become a good java programmer. keep it up.


consider the following code segment.





double dTot;


String s = "11316500.00"


double dTot=Double.parseDouble(s);





in this way you can convert the string to the double variable.


Note: you can convert the double basic data type to the object as


Double dObj = new Double(s);


this can be used at the situation when you want to convert the double value to the object.


__Vasantha kumar
Reply:Try using a Double object with the method


static Double parseDouble (String s)


with s being the string you wish to convert


Does anyone knows how to put a java game on my website?

Does anyone here knows how I can put a java games on my website? And do you know where I can buy an online game to be put on my website and user can play for free?





I prefer free games. Just wanna entertain my visitors.

Does anyone knows how to put a java game on my website?
try out Adobe Golive
Reply:Create a html page linking those .class files %26amp; .jar files (java game files) and upload them to your webspace


Where can i find exercises online to practice programming with Liberty BASIC or Java?

I've just finished a computer science course at school using Liberty BASIC, and am starting a course that teaches Java next semester. I was wondering if anyone knows where i can find some exercises or situations online so i can practice the different parts of programming.

Where can i find exercises online to practice programming with Liberty BASIC or Java?
try http://www.tutorialized.com/

flower seeds

Thursday, July 30, 2009

How do you make a java chip frappuccino?

It's a drink from starbucks.

How do you make a java chip frappuccino?
Oohh yumm!! Here's a copycat recipe from Recipe Sleuth





I N G R E D I E N T S


4 tablespoon chocolate syrup


4 tablespoon chocolate chips


4 cups double-strength freshly brewed dark roast coffee


Chopped or crushed ice


Whipped cream (optional)


Chocolate syrup (for drizzle, optional)





I N S T R U C T I O N S


Fill blender half full with chopped or crushed ice. Add all ingredients (except whipped cream) and blend until thick and still icy. Pour into 4 tall glasses, top with whipping cream and drizzle chocolate over the whipped cream.





Serves: 4
Reply:To get a quality recipe check out www.allrecipes.com





They have 1000s of recipes in every catagory that are rated by users so you know ahead of time that you're getting a great recipe.





You can search by ingredient, ethnic/regional, etc.





You can also change the amount of servings and the site will automatically adjust the measurements for the ingredients.





Most recipes even have the nutritional info included, too.





Genius!


How do I install new java games onto my Razor phone that I got from the internet?

I have the motorola phone manager but it does not let me transer the games.

How do I install new java games onto my Razor phone that I got from the internet?
Go to applications your downloaded file will be there you can install it in to your phone and start playing games


My Blackberry 7130e keeps saying Java not enabled for some downloads, how do I enable it?

I try to download a game or webpage when I get this and I don't know how to enable it.

My Blackberry 7130e keeps saying Java not enabled for some downloads, how do I enable it?
In the Browser, press the menu button. Select options. Select browser configuration. Check "support javascript".





Enjoy! :)


How do I set up a free JAVA work environment on my PC?

I know I can write Java code, but I have no were to test it.

How do I set up a free JAVA work environment on my PC?
Download Netbeans or Eclipse IDE for local Java development and test/debug (see links below)


Alternatively, you can simply obtain Sun's JDK for command line work; this will have the smallest footprint but very limited debugging tools.


If you desire J2EE application server development, you might consider Apache Geronimo or JBOSS app servers.
Reply:The Java SDK is available from from http://java.sun.com/. If you are looking for IDE (Integrated Development Environment), check out applications like Eclipse from http://www.eclipse.org. If you want a build environment, consider Apache ANT at http://ant.apache.org/. For an Application Server, take a look at JBoss from http://www.jboss.org/ or GlassFish from https://glassfish.dev.java.net/.
Reply:Download Eclipse.

anther

How can I make a Java function that displays a Swing Frame wait until the user presses OK to return?

I have a function that I don't want to return until the dialog has been dismissed. How can I do that?

How can I make a Java function that displays a Swing Frame wait until the user presses OK to return?
Hi Steve





E.M. Bedd is right, But you can also show a custom frame to the user.


For this you need to inherit the Dialog Class and specify the parent frame. I think this will help you





Good Luck


Anand.
Reply:You just need a java alert box equivalent.





import javax.swing.*; and use





JOptionPane.showMessageDialog( null, "Press OK to continue", "" , JOptionPane.ERROR_MESSAGE);
Reply:try putting the swing frame in a do while loop with the condition the answer.


How can I get a java scipt window to resize when clicked on in dreamweaver, using effects like grow/shrink?

I am making a webpage, and want to use google calendar. I want the calednar to start off small but then when I click on the calendar or a button, I want the calendar to expand to a larger size. I tried doing this with the grow/shrink effect, but it doesnt always work right, because I think dreamweaver designed in a way that works best with images. How can I do this, please help.

How can I get a java scipt window to resize when clicked on in dreamweaver, using effects like grow/shrink?
Do you want a small thumbnail which expands when the user rolls over or clicks?





I use ImageVenue which creates the thumbnail and insertable code.





http://img227.imagevenue.com/img.php?ima...


What is the job function of a java developer?

How does one become a java devloper? What courses should I look into and what certification should I get?

What is the job function of a java developer?
The "cookie cutter" answer is someone who is able to take business requirements and objectives, and make a meaningful application that is able to solve that particular business problem. The best Java developers will not only take into consideration the actual business problem being solved, but will also create a "framework" of which that problem solving application can be used for a multitude of other business problems. Also, the typical request for java developers is to have a myriad of different skills other than technical; As in, "With a financial services background", or "Help desk background". It's important to understand that Java development %26amp; related technologies in and of itself is not that important. It's being able to apply Java and it's related technologies to best solve unique business problems in the easiest(most of the times "best") way possible. That's a double edged sword. The easiest is quite often not the best. Here's a typical Job posting for a "Java Developer":





7-8 years of solid programming in skills in Java/J2EE, C#, etc. Must have finacial industry experince.





Experience in building enteprise applications in J2EE.





Experience in building enterprise framework integrating varous business processes.





Experience in Web development.





Excellent communication and academic background is a must.





Some basic knowledge of databases required.





Scripting, especially Perl





Basic Linux %26amp; Windows systems administration





As you can see, most employers are not looking for someone who can "code" java. A lot of people can do that. What they are looking for is industry expertise that can help them solve those business problems. Which usually involves not only Java, but C#, perl, %26lt;insert any other language or scriping language here%26gt; and system adminstration duties as well. Please also note the "background" stuff they always seem to ask for. The best way to get a particular "background" is to intern somewhere that will give you experience in an area you find most interesting(this typically will keep you motivated).. Other than that, don't learn only Java. Learn J2EE, learn SQL %26amp; Databases(the big ones are Oracle, DB2, %26amp; MSSQL) learn Java beans(which are related to J2EE), learn XML, and for the love of pete learn to read javadocs! There's a lot of problems that have already been solved in existing java classes that are out there on the internet. Java is to be reused and "should" run anywhere(not too often the case in enterprise software).. A real good place to start is http://java.sun.com This is pretty much just a brain dump on my part. I hope this helped.


Thanks!


~Chris
Reply:A java developer makes coffee. To become one get yourself a coffee maker and some coffee beans and a grinder. Hot water would also help. Get a job at Starbucks; they'll train you.
Reply:To get a job as a java developer, you should begin by finding a college/university/tech school that offers courses in Java. Your degree will be vital in finding a position, and will determine your pay level. Programming requires math skills and knowledge of programming languages. Some you will use as a Java devolper are Java (of course), javascript (very different than Java), and HTML. Then practice a lot. Make programs to help you in your everyday life, games, etc. Once you have your degree, or are well on the way to earning it, start searching classified ads, websites, etc. and you will find many opportunities.


Good Luck
Reply:A Java Developper is a Software Engeneer that developes softwares %26amp; programes in Java. Java is a programming language similar to C++


To become a Java Developper you need a BA in computer science. Being a programmer is not only knowing Java or C++, it's also knowing the fundamental concept of programming


How can I use motorola mobile phone tools to add a java program to my v360i?

I want to put a dictionary on it, chinese-english. Where can I get it free and will I need to add a memory card (above the 5mb already on it)?

How can I use motorola mobile phone tools to add a java program to my v360i?
You may want to check at http://www.motomodders.net or http://www.vxxxstuff.com

tomato plants

Does anyone know how to download java games into your mobile?

I recently bought LG Chocolate U830. This phone does not have any game of its own, so I dowloaded some games (Java games for mobile) off the internet. But now I am finding it very difficult to download these games from my PC to the mobile. Can anyone please help????

Does anyone know how to download java games into your mobile?
I use to download the java games online, then send it my phone by e-mail. I attach the game to the e-mail. Then i download the game from the e-mail to my phone.


What program can I use to write my own Java programs?

I'm looking to program in Java but I don't now where to get a program to write in Java. Preferably free.

What program can I use to write my own Java programs?
VIM or notepad
Reply:I use eclispe: http://www.eclipse.org/downloads/


But there is also NetBeans:http://www.netbeans.org/downloads/





Both of which are free.





If you would rather not use an IDE, you can use notepad and command prompt to compile and run java code.
Reply:you can go on www.meez.com beacause you have to download java for it its free


How do I install Java applications in Windows Mobile 5 on my Samsung Blackjack?

I own a Samsung Blackjack using Windows Mobile 5.0 and I have games with .JAR and .JAD file extensions. I am using a USB cable to look into my phone's system files. I need to figure out how to install them so that I can play them on my phone.

How do I install Java applications in Windows Mobile 5 on my Samsung Blackjack?
You can always go to the windows website and they provide windows mobile for all mobile devices.Dont forget to have the USB connected perfectly together.If there is troubleshooting then contact me and i will help.


How to set significant figures in Java Programming language?

I'm writing a simple ATM machine for my java programming class. I currently have it all set to work and my only problem is that when there is no change to be displayed. EX 100.00, is displayed as 100.0, or One dollar is displayed as 1.0. How can I set it to display currectly like a true ATM machine would do with both decimal places. Thanks for you help

How to set significant figures in Java Programming language?
Java 1.5 offers a printf-like formatting via java.util.Formatter or via the 'printf' method of an output stream:





e.g.: System.out.printf("%.2f", (double)100); or


String output = String.format("%.2f", (double)100);
Reply:The answer you are looking for is the printing. You select how many decimals there are at the print stage. Look at the DecimalFormat class for the secrets.





However this is NEVER done in the real world. You'd use something like BCD or integer arithmetic to ensure that you have no awkward decimal fractions to deal with.

petal

How can i download the Java API Docs to my computer?

I won't have internet this summer i still want to program in java. (and yes, i will go outside this summer, too. I just don't like watching channel 4 at night because that's the only channel we get at my camp.)

How can i download the Java API Docs to my computer?
Click on the Download link near "Java SE 6 Documentation".


Can I put finches and java's together in one cage?

I am looking forward to add some finches and Java's to my bird collection I just want to know will it be alryt to put these species together, What I feel is not to put together. What you all think about it pls help!

Can I put finches and java's together in one cage?
You say cage... and someone else say its ok in an AVIARY. How much space do you have ? If its just a cage I would say NO. We had Javas in an aviary 10 metres by 3 metres by 3 metres with other finches, canaries and parrots. The Javas ( although very pretty ) were so active and annoying to all the other birds we had to sell them. AND our aviary was HUGE !! I would say NO.
Reply:Yes.
Reply:Yes its ok my mum had finches %26amp; javas together with other birds in an aviary for years and bred them successfully
Reply:they will be fine together, in an aviary. not a cage.


How do I create a Java bean for Drop down menu and call the bean in Jsp!?

I want to create a registration page and there is a drop down menu on the page. I want to call the elements of the drop down menu using a java bean and the elements for the menu are from text/csv file. Can anyone suggest me the ideas in creating the bean !

How do I create a Java bean for Drop down menu and call the bean in Jsp!?
in the java bean:


u need to create the element as an array, and fill up the elements.


Have getter and setter for the element





in the jsp, u can just call the array and loop it and display the elements in the array.


How to check whether a file is opened or not through java?

Here is the situation:


My java code needs to check that a file is opened or not in time of execution.Let I have opened a text file(aaa.txt) from windows and then I want to give a confirmation through my code something like(the file is opened). please help with just the code for check this condition.

How to check whether a file is opened or not through java?
I don't think you can do that. When you ask java to open the file it can read from it. If you don't open the file in the code, the Java wont see the file at all. You might want to look at the swing libraries, they might have some file manipulation there. Also, make sure that the file you are opening in the directory where the java can read it. Meaning if it in the same place as the code or the total path of the file.
Reply:If your file is already open then the canWrite() function will return false


so your code can be





if(file.canWrite())


{


//Do what ever you want


}


else


{


file.close();


}

garden sheds

How Can I Turn On Java Script On My Computer?

I am not able to listen to a lot of music etc, on MySpace cause it says I have Java Script turned off. Any advice on how to change it? I have Windows XP.

How Can I Turn On Java Script On My Computer?
Download it from here http://www.java.com/en/download/windows_...


What is the best program for creating an installer for java applications?

It would be nice if the installer program could create cross-platform installers but that is not necessary. What I am looking for is the best installer creator program in your opinion.


Thanks!

What is the best program for creating an installer for java applications?
Below are a couple of java installers





The second link has many open source java installers


How can I add Java Script to my desktop?

I down loaded Java Script all the way to the point of "Finish" and it said "successfully downloaded", yet every time I try to access it, I have to go through the web to get it. If it was successfully downloaded and appears on my programs menu, how can I access it from my desktop? I want to make it an icon on my desktop for easy access without having to go to the www.

How can I add Java Script to my desktop?
Java Script is a script, it is text, a javascript file would be a text file. You would open it in notepad. It cannot do anything by itself, it has to be interpreted by a host, which for javascript is usually a web browser. Your description makes me think it is not javascript, but rather a java program which you are trying to run. What exactly are you trying to get (you can email me, it's in my profile)?


I have a Java Applet window, which is blocking my message window in games, how do I get rid of it?

I am in your games section. And there is an Java Applet window that is blocking my message window, how can I get rid of this?

I have a Java Applet window, which is blocking my message window in games, how do I get rid of it?
un-install the progam. or go to advanced in internet options, and turn the java off.

garden design

What are the major ports in Sumatra and Java islands of Indonesia?

SUMATRA


- Belawan, North Sumatra


- Palembang, South Sumatra


- Teluk Bayur, West Sumatra


- Jambi (city)


- Bengkulu (city)


- Panjang, Lampung


- Pangkal Balam, Bangka-Belitung


- Tanjung Pandan, Bangka-Belitung


- Sungai Pakning, Dumai, Riau


- Krueng Geukueh, Aceh


- Kijang (city), Bintan





JAVA


- Cirebon, West Java


- Tanjung Priok, Jakarta


- Ciwandan, Banten


- Sunda Kelapa, Jakarta


- Tanjung Perak, Surabaya, East Java


- Tanjung Emas, Semarang, Central Java


- Tanjung Intan, Cilacap, Central Java


- Kalianget, Madura


On a java enabled moboile phone is it possible to get a virus, when downloading games etc?

Also if it is possible what is the worst the virius could do?

On a java enabled moboile phone is it possible to get a virus, when downloading games etc?
Unfortunately Java-enabled devices are not exempted from viruses. So to answer your question, yes it is possible to get them from downloading games, java mobile apps, etc.





The worst it can do? Well whatever a computer virus can do to your computer (wipe out files, wipe out OS, etc.), may also happen to a mobile phone struck with virus. So the only way to avoid this is to make sure you're getting the games/apps from reputable sources (like perhaps an extra service provided by your mobile network).
Reply:Yes, many viruses have %26amp; can be downloaded to phones. the range of problems that can be caused depends on the specific virus just like with a pc etc


Can some one link to me to a reference page for swing java commands?

Im just looking for maybe like a single webpage that has a simple/basic listing of java swing commands/methods. Something I could use to help teach swing java to people.

Can some one link to me to a reference page for swing java commands?
This page contains a series of tutorials from Sun.





http://java.sun.com/docs/books/tutorial/...
Reply:http://java.sun.com/j2se/1.4.2/docs/api/





Scroll down in the upper left pane and locate javax.swing


What is the best substrate that supports java moss?

I have a 16 gallon tank with a pair of breeding kribensis.

What is the best substrate that supports java moss?
Wood, by far.





Use wood from an aquarium supply store to avoid adding other nasties to your tank. You can attach the moss with a rubber band or two at first. These can later be cut off when your moss has attached.





The tannins from the wood will be beneficial for your kribs, too.
Reply:Java Moss does not need substrate. I dropped a bunch in a bare tank where I had some swordtails and in about a year, they grew until they covered the entire floor space of a 5x2x2 foot tank about 10cm thick!





If you have a strong filter, the most common material would be a piece of driftwood. I don;t like driftwood because most of the time, they stain the color of the water. I prefer some flat rocks.
Reply:What isnt'! it's fast growing and will attach it's self to ANYTHING! I personally would use a nice piece of driftwood. so if it does get outta control you can give it a hair cut so to speak. Otherwise, something different hang it from a little chunk of natural corkbark, so that it hangs down like Spanish Moss. This plant is only stopped by your imagination.

flower pictures

Is it possible to learn Java thru online? What is the basic knowledge required to learn java?

Please suggest some websites to learn java thru online, preferably free.

Is it possible to learn Java thru online? What is the basic knowledge required to learn java?
Yes,its possible to learn java online.You have an advantage if you already know C/C++ or VB.Net .





Try starting with an IDE(Integrated


Development Environment) , it simplifies the design process for you . The best IDE recommended by Sun themselves is


NetBeans (at netbeans.org) . You can also do mobile programming with NetBeans(you need to download a mobile ext pack seperately).





But before all that you have to download JDK 1.5 upgrade 6.Thats the core , you can write programs without an IDE


but not without the core





Don't follow the herd by taking Sun's own tutorial , its outdated and doesn't support IDEs .Just google for "Java Tutorials thru NetBeans" and many good ones will spring up.





I learnt java through trial and error, because of my experience in C++ and VB . Now I am a programming expert
Reply:http://java.sun.com/docs/books/tutorial/...





here's another one
Reply:If you know C++ then you have a head start. Otherwise, just search for "java tutorials"
Reply:yes, you can def learn java online. Its very similar to C++. http://www.Tutorialdirectory.org has a list of sites that have tutorials. You should be able to find java tuts there.


Where can I find a code for a Java Photo Album?

I need a cool looking java code for my blog that will let users click a thumbnail image in the java window to make it come up larger in the same java window. Thumbnails should still be visible for choices on the next image. Thanks in advance.

Where can I find a code for a Java Photo Album?
I can make you one!








As long as you pay me! :)
Reply:the internet


Is the Java Programmer Certification enough for a job?

I am ready to take the SCJP 6.0 exam. Now since I have no degree. Will I be able to find even an entry level job doing Java Programming?





Or am I just wasting my time reading 2 books to get certified to retrain myself on this stuff?

Is the Java Programmer Certification enough for a job?
It really depends on the specific job you're applying for. Check to see what they require. Entry level typically means *no experience* and are found typically with the minimum of a degree of some sort.





That said, the SCJP is no doubt a good exam to be attempting- it's one of the toughest out there and will no doubt get tougher should you decide to go up the Sun ladder of certifications. It's a highly respected exam and will definitely be an asset on your resume.





However, between someone with a degree(but no SCJP) and someone with no degree(but has a SCJP), the recruiter is likely to consider the person with the degree first.





Certifications are meant to make you stand out amongst the applicants. It's usually not the deciding the factor but it definitely helps- if it's enough to get you the interview, you will then be in charge of aceing the interview. What they're good for, as mentioned, is say between two applicants that have degrees- but only one has a certification, the person with the certification(all other things being equal), will usually be considered first. It's definitely *not* a waste of time though- provided you pass it. :) You just may find a shop that will take you regardless of any degree.





Hope this helps. Good luck!


-Capt


How do i program convincing jumps in a fighting game I will make as java applet?

I dont' know much about physics..and i don't want to spend a whole lot trying to figure it out. A few years ago i managed to program a whole java game, fighting game i created. It was fun but jumps were kind of cheap.

How do i program convincing jumps in a fighting game I will make as java applet?
I was going to say use Newton's gravitational constant, but since you don't want to do that, I'd say simply make the jump slow down progressively until the jumper reaches the top height, and then do the reverse for the descent.





If you saw the movie Ice Age, there's a scene where this piece of ice pops out of the top of a giant cliff wall. It starts out real slow and then accelerates. Very realistic looking.
Reply:What kind of game is it? Which way u want to put jumps?





I have also made PLANE FIGHTING game: see "aakash.freehostia.com"


If yours is similar, I can answer ANY OF your question, if it's different, please specify how you want to put jumps!

credit cards

JAVA QUESTION: How are static fields and methods different from non-static fields and methods?

How are static fields and methods different from non-static fields and methods? What would go wrong if we declared the balance field of a bank account class to be static? What could go wrong if every account had a field containing today's interest rate?

JAVA QUESTION: How are static fields and methods different from non-static fields and methods?
Static fields and methods belong to the class not the individual instances of the class. All instances of a given class share the same static variables/methods.





For example:





public class Dog {


public static String breed;


public String name;


}





-----





public class StaticTest {





public static void main(String[] args) {


Dog dog1 = new Dog();


dog1.name = "Spot";


dog1.breed = "German Shepherd";





Dog dog2 = new Dog();


dog2.name = "Fido";


dog2.breed= "Mutt";





System.out.println(dog1.name + " is a " + dog1.breed);


System.out.println(dog2.name + " is a " + dog2.breed);


}


}








When run, you'll get:





Spot is a Mutt


Fido is a Mutt





Because while name belongs to each individual instance of Dog, breed is shared among all Dog's





Hopefully you can see the disastrous results of making checking account balance a static attribute. Everyone at the bank would always have the same amount of money.





On the other hand, keeping today's interest rate in each account is too much overhead since the interest rate should be shared by all customers.





Static methods also work well for functions that don't necessarily require an object to be created in order to run that function.





For example:





public static long farenheitToCelcius(int F, int C);


and


public static final String RGB_BLUE = "#0000FF";





could be called from anywhere without have to instantiate their parent objects.


At what age does a java finch head becomes totally black?

My 7 month old has black lines on each side of it's head, but it's been like that for 4 months. The rest is still white.

At what age does a java finch head becomes totally black?
at this age it is probably going to stay that color. It may change when it molts for the first time next year. But for now it sounds like the color is there to stay.

brandon flowers

Is it possible to remember all the java codes?

1)Is is possible for someone to actually memorise all the java codes?


2)Or do programmer reffer to created examples while creating a program?


3)At IB school level in 2 years is it required to learn absolutely everything


4)or can we reffer alot to created examples which writing our dossier?

Is it possible to remember all the java codes?
I don't know if the certified Sun developers know all the packages but they sure know the core JFC and it's heirarchy. I've watched them call up methods that were way up the hierarchy without even thinking. As for me, I've grown very dependent on the NetBeans IDE. It uses the javadocs to suggest every possible method Object.method(); with a popup. I always have the API javadocs running as a bookmarked url in my browser. I know the tutorials by heart.





Of couse, I'm self-taught. I've only worked as a contractor coming in to fix things after someone else. Talk about spaghetti code!


How to use readymade dll file in java?

I am doing project on astrology. i have got swiss ephemeris dll file planetary calculation. But i don't know how to use it in java. can u help me?

How to use readymade dll file in java?
You need to use JNI (Java native interface). JNI is difficult to use and very unfriendly. From what I can find, you cannot just call an arbitrary DLL, its needs to have been written with JNI in mind. So unless you have the source to your dll, you won't be able to do it. And if you DO have the source, you will be much better off rewriting it in java. Nevertheless, here is a quick introduction to JNI:


http://www.codeproject.com/KB/java/jniba...
Reply:Use : System.loadLibrary(String) and System.load(String)





if using System.loadLibrary just specify is the name of the DLL file you want. The JVM will search for it in the "Java library path."





and if using System.load , just insert code like:


System.load("c:/path/to/dll/yourdll.dl...


How do I transfer a java game from pc to phone via bluetooth ?

Downloaded a game off the internet and is a collection of files and folders. I have tried to install game to my samsung e720 via belkin bluetooth dongle from my pc, but to no avail. Can anyone help me ?

How do I transfer a java game from pc to phone via bluetooth ?
To the best of my knowledge you can't carry over a JAVA game. That's how they make their mney I'm afraid. I've tried doing it too by dongle %26amp; USB and got no where. Sorry.


How do you complete a download from internet to mobile of a Java game?

I sent three text messages and they sent me a service message with a code which I seem to have lost somewhere on my mobile and now can´t complete the download of the game. Please help!! Mobile is a Nokia 6085.

How do you complete a download from internet to mobile of a Java game?
If you cant download the game... stop wasting money %26amp; simply get the games for free. You have loads of JAVA Games available at http://gsmarena.com %26amp; it is a TRUE fully free site.





Some other great free sites I've come across for Java Games are:


http://www.funformobile.com/


http://www.funmaza.com


http://www.getjar.com/software/


http://www.mobilerated.com


http://www.mobilesmania.com


http://www.waptrick.com


http://www.zedge.net
Reply:If you've lost the code then you've probably lost the game with it. Do you have proof that you paid for the game? If so you may be able to use this to get them to send the code to you again.

video cards

How do I calculate the difference between two calendar dates in Java?

It must be done manually without using date or calendar methods. Or where can I obtain the source code that forms those methods?

How do I calculate the difference between two calendar dates in Java?
You don't need the source code (since you can't modify the variables in the object so it won't do you much good). All you need is the interface which is available on the sun website. I've linked to it in the sources. Good luck.