Search:

Type: Posts; User: psabbate

Search: Search took 0.38 seconds.

  1. Replies
    5
    Views
    658

    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
    324

    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
    460

    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
    334

    Re: Why cannot the class be protected?

    There is not such thing like a "protected" class ...
  6. Replies
    3
    Views
    346

    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
    285

    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
    523

    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
    523

    Re: if....else statement

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

    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
    929

    [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
    610

    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
    503

    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
    516

    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
    446

    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
    5,465

    Re: Opening a single .java file in Eclipse

    Jaja no problem !!
  18. Replies
    3
    Views
    5,465

    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
    575

    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
    338

    Re: Please help with code

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