CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ProgramThis

Page 1 of 39 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    8,711

    Re: Why we use initialization block

    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...
  2. Replies
    11
    Views
    8,711

    Re: Why we use initialization block

    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...
  3. Replies
    11
    Views
    8,711

    Re: Why we use initialization block

    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...
  4. Replies
    1
    Views
    1,257

    Re: FileArrayProvider?

    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...
  5. Replies
    2
    Views
    1,141

    Re: I am confused..

    Read the API for BufferedReader. There is no hasRemaining() method.
  6. Replies
    3
    Views
    4,642

    Re: Cannot find Symbol Error

    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,...
  7. Replies
    11
    Views
    8,711

    Re: Why we use initialization block

    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...
  8. Replies
    8
    Views
    14,003

    Re: Insert data into mysql using jsf ?

    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...
  9. Replies
    8
    Views
    14,003

    Re: Insert data into mysql using jsf ?

    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...
  10. Replies
    20
    Views
    2,028

    Re: PrintEvent help

    Where did you get the PrintEvent class from.
  11. Replies
    8
    Views
    14,003

    Re: Insert data into mysql using jsf ?

    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...
  12. Re: question reagrding byte and integer size holder

    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...
  13. Re: This exercise is not particularly difficult, but the concepts are new.Can u Solve

    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...
  14. Re: This exercise is not particularly difficult, but the concepts are new.Can u Solve

    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...
  15. Re: This exercise is not particularly difficult, but the concepts are new.Can u Solve

    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:...
  16. Replies
    18
    Views
    5,476

    Re: LinkedList for order

    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:
    ...
  17. Replies
    2
    Views
    3,019

    Re: FileEncryption using PGP in Java

    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.
  18. Re: Are there any 3D graphics support from Java

    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...
  19. Replies
    1
    Views
    3,778

    Re: do scp from my java application

    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...
  20. Replies
    6
    Views
    4,046

    Re: What are you using to write your code?

    But I don't see my editor on there! I go to the command line in Windows and type c:\edit Foo.java.
  21. Re: Open source software implemented using SOA?

    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...
  22. Replies
    5
    Views
    2,513

    Re: Maximum Heap Size?

    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...
  23. Replies
    1
    Views
    1,067

    Re: Need help with pseudocode please

    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...
  24. Replies
    10
    Views
    6,139

    Re: Java3D collision detection

    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...
  25. Replies
    2
    Views
    1,118

    Re: Applet logic error

    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...
Results 1 to 25 of 975
Page 1 of 39 1 2 3 4





Click Here to Expand Forum to Full Width

Featured