Search:
Type: Posts; User: ProgramThis
Search:
Search took 0.08 seconds.
-
October 18th, 2011, 11:47 AM
So what you are saying is that a comment in a book you read is more accurate than the documentation listed on oracle.com? :o
What is misleading about the statement? It doesn't execute "as if it...
-
October 18th, 2011, 08:22 AM
Actually Instance initialization blocks run inside of the constructor. They run after the explicit call to super(). When the code is compiled, the code in an initialization block is actually placed...
-
October 17th, 2011, 02:25 PM
One last thing I forgot to say: one of the main useful purposes of having the initializer blocks is so that the same code to initialize can happen no matter which constructor is called, without...
-
October 14th, 2011, 10:38 AM
If you look at the first comment, the FileArrayProvider is the class he is creating as an example. Look at the package it exists in (com.acme), that should tell you right away that it is not...
-
October 14th, 2011, 10:36 AM
Read the API for BufferedReader. There is no hasRemaining() method.
-
October 14th, 2011, 10:33 AM
To add a little to Albert's, it is generally considered bad practice to name your variables and methods the same. It can cause confusion when reading the code (yes, I know: methods have the parens,...
-
October 14th, 2011, 10:31 AM
The reason you would use initializers over the constructors is mainly useful for when you have final variables that may require programming logic to set them. Remember, a final variable MUST be set...
-
September 26th, 2011, 11:57 AM
Sorry for getting back to you late on this, I have been away.
In order to regulate the options you need to do it on the back end (inside of the managed bean). What you would normally do is either...
-
September 19th, 2011, 09:47 AM
You have to create a bean class and reference it in the faces-config.xml. Create the bean class (nothing special unless you are using some tag library).
Referencing it in the faces-config.xml is...
-
September 16th, 2011, 08:35 AM
Where did you get the PrintEvent class from.
-
September 16th, 2011, 08:33 AM
No. YOU provide the code, with error messages, and we will help you. Nobody is going to do your work for you. Do some reading up on how to do this, there are thousands of web sites that show...
-
September 7th, 2011, 08:36 AM
This is because the '+' operator is not overloaded to handle bytes. Instead it converts them to ints and performs the calculation. The possible loss of precision is because you now have an int...
-
July 27th, 2011, 11:03 AM
Please enlighten me and show me where it says in the rules for the discussion forum that I cannot "sleep for 2 or 3 days" and join a discussion? Oh, is this some sort of 'unspoken' rule from...
-
July 26th, 2011, 11:11 AM
Also, I would suggest that nobody click on the links he has provided. NONE of the Java2s links reroute you to anything like www.java2s.clanteam.com, all of them stay at www.java2s.com. There is no...
-
July 26th, 2011, 11:04 AM
So what you are saying, is that we should all learn to speak in broken English so that foreigners can understand better? Maybe we should use internet leet speak as well, or even Ebonics. :rolleyes:...
-
I don't know why he bothers posting over here in the Java forums anyway. He obviously thinks that Java is inferior to C in every way and hates it, and apparently everybody that codes in it. :lol:
...
-
PGP (Pretty Good Privacy) is not supported in the Java libraries. You have to download a third party library, like bouncy castle, and use that to encrypt the data with PGP.
-
Opinions are fine, but insulting other people's choices is just uncalled for. Most of us can appreciate the fact that Java isn't the strongest language for desktop applications, but some people...
-
This sounds like a UNIX/LINUX problem and not a Java one. Have you tried to run the exact command in the quotes at the command line?
If that 'does' work, have you checked to ensure that the Java...
-
But I don't see my editor on there! I go to the command line in Windows and type c:\edit Foo.java.
-
It is hard to help you without knowing more about your project and what you are trying to do. Saying that you want SOA is vague and supported by most open source architectures out there. Spring has...
-
I think you need to look at how you are processing the XML instead of how to increase the heap size. There are several different ways to process XML in Java, one of which is buffered so that you can...
-
Since you have posted this in 12 other forums, and have received an answer in C in one of them, I will help everybody out by letting them know not to bother. You have your actual code in C, now YOU...
-
April 27th, 2011, 10:45 AM
It sounds like you need to separate your logic out. If you had 3 methods, one for contacting a puck, one for the goal and one for the walls, you could then differentiate and code what specific...
-
April 25th, 2011, 08:08 AM
And of course if you ARE going to use the terrible practice of comparing variables like that, or if you are comparing int's maybe, you should always place the variable on the right hand side so that...
|
Click Here to Expand Forum to Full Width
|