Search:

Type: Posts; User: psabbate

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    1,680

    Re: Use of final keyword

    That's wrong, the final keyword means that you can't reassign the variable. In case of methods, means that you can't override it. In case of Classes, means that you can't extend it.
  2. Replies
    1
    Views
    1,369

    Re: post increment

    That's not ok. Post increment first evaluate the variable, then increments.

    So, if you have

    int a=0

    System.out .... (a++) //Print 0
    System.out .... (++a) //Print 2
  3. Re: how do i split a string into two parts and test if the second part of string is e

    You should use something like this

    /**Code removed by moderator*/

    Sorry about the format!
  4. Replies
    13
    Views
    1,262

    Re: Just learning how to use constructors...

    Mmm, it's not clear for me what exactly are you expecting from us, but regarding constructors I can say

    You can have private, default and public constructors
    You can't inherit a constructor
    If...
  5. Replies
    2
    Views
    1,151

    Re: Why cannot the class be protected?

    There is not such thing like a "protected" class ...
  6. Replies
    3
    Views
    1,410

    Re: Cannot figure out how to code this...

    You can start reading some examples about SimpleDateFormat, In my opinion is the best way to do what you have to do ...
  7. Replies
    1
    Views
    1,084

    Re: Need help with Enums and setting costs

    You can put some attributes into your enums ... for example.



    public enum CustomerType {
    SILVER(25d, 1d), GOLD(30d, 0.50d), PLATINUM(35d, 0.25d);

    private double baseCost;
    ...
  8. Replies
    9
    Views
    1,577

    Re: if....else statement

    I'm sorry, but I have to disagree with you. Eclipse itself could answer a lot of questions that I 've seen posted here. If the beginners want to "think" like a compiler, they should study for SCJP.
  9. Replies
    9
    Views
    1,577

    Re: if....else statement

    But why aren't you using an IDE like eclipse to avoid these kind of issues??
  10. Replies
    2
    Views
    1,337

    Re: Single Instance of a class

    You mean besides Singleton Pattern? Basically the idea is a private constructor and some methods to access the instance, but I 'm not quite sure that I understand your question.
  11. Replies
    4
    Views
    4,543

    [SOLVED] Re: actual and formal lists differ in length

    But that's a compilation error, right? What IDE are you using??
  12. Replies
    2
    Views
    3,409

    Re: Cannot connect Java program to database

    Take a look Connect to Access Database using JDBC-ODBC bridge : JDBC ODBCDatabaseJava Tutorial
  13. Replies
    1
    Views
    1,500

    Re: Help me in alligning . GridBagLayout

    Did you read the documentation? How to Use GridBagLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)

    Anyway, here you have a small code which...
  14. Replies
    1
    Views
    1,457

    Re: Spring Hibernate integration problem

    Please post the entire stack trace. There is no way to help you with this information.
  15. Thread: UML diagram

    by psabbate
    Replies
    1
    Views
    1,250

    Re: UML diagram

    I'm sorry. I don't understand your problem. You need an UML diagram right? Are you using any tool? Can you give us more information?
  16. Re: Hello Everyone! Many, many years in IT development, but need hands-on practice!

    You're welcome!
  17. Replies
    3
    Views
    12,483

    Re: Opening a single .java file in Eclipse

    Jaja no problem !!
  18. Replies
    3
    Views
    12,483

    Re: Opening a single .java file in Eclipse

    If you want to just open the file go to file -> open file ...
    If you want to run java file, create a simple java project, then copy your java file to the src package and right click (over your java...
  19. Replies
    8
    Views
    1,946

    Re: Triple Inheritance

    You can inherit attributes but should be careful regarding their access modifier. Only protected attributes can be accessed directly by sub classes.
  20. Replies
    2
    Views
    1,185

    Re: Please help with code

    So ... what's the problem?
Results 1 to 20 of 20