pbl's Profile User Rating: *****

Reputation: 8342 Deity
Group:
Mentors
Active Posts:
31,932 (13.14 per day)
Joined:
06-March 08
Profile Views:
148,752
Last Active:
User is offline Yesterday, 03:50 AM
Currently:
Offline

Previous Fields

Country:
CA
OS Preference:
Who Cares
Favorite Browser:
Internet Explorer
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Hyundai
Dream Kudos:
2425

Latest Visitors

Icon   pbl OpenVMS forever

Posts I've Made

  1. In Topic: Why is my program outputting this?

    Posted 31 Oct 2014

    When did your teacher learned Java ?

    The constuctor Date(year, month, date) and the methods getMonth(), getDay(), getYear() are deprecated since JRE 1.2 we are talking more than 10 years ago
  2. In Topic: New with Java, need help understanding some elements in the code

    Posted 31 Oct 2014

    for(int j = 1; j <= 10; ++j)   // for j = 1 till j <= 10 adding 1 to j at each iteration
       println(j);
    
    

    does:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    for(int j = 1; j <= 10; ++j)
    
    means
    
    put 1 in j
    while j <= 10
       do something
       add 1 to j
    
    
  3. In Topic: New with Java, need help understanding some elements in the code

    Posted 30 Oct 2014

    First week of Java and you are already in the for() loop !!!
    Seems weird to me
    Try this it may help you to understand

    
       for (int j = 1; j <= column; j++) {
            System.out.println("In for j loop where j = " + j); 
                for (int i = 1; i <= column; i++) {
                  System.out.println("In for i loop where i = " + i); 
           
                    System.out.print("Will print j * i: " + (i * j));
                }
        }
    
    
  4. In Topic: Draw Rectangle Through ArrayList

    Posted 30 Oct 2014

    This

           box.setLocation(x, y);
    
    


    always refer to the same and unique instance variable

          private Rectangle box;
    
    


    so all Rectangle will be at the X.Y of the latest addRectangle()
  5. In Topic: password validation

    Posted 30 Oct 2014

    Why are you hardcoding Ascii value of characters ?
    You want to show that you know your Ascii table by hart ?
    After 41 years of programming I don't really know it

         (b[i] >= 'A' && b[i] <= 'Z')
    
    


    will do and we'll be much clearer for the folk who will have to read back your code

    for that type of thng better to write a boolean method and break out of it if a condition is not respected

    static private boolean valid(String str)
    {
         int len - str.length();
         if(len < 8)
            return false;
         if(len > 10)
            return false;
         char[] digit = str.toCharArray();
    
         for(int i = 0; i < len; ++i)
         {
            if(digit[i] >= 'A' && digit[i] <= 'Z')
               continue;
            if(digit[i] >= 'a' && digit[i] <= 'z')
               continue;
            if(digit[i] >= '0' && digit[i] <= '9')
               continue;
            return false;
         } 
         ... other tests
         return true;
    
    }
    
    

My Information

Member Title:
There is nothing you can't do with a JTable
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Drummondville, quebec, Canada
Full Name:
Paul-Benoit Larochelle
Years Programming:
39
Programming Languages:
Java, C, C++, Cobol, Fortran, Assembler, Macro, Compass, DCL, Snobol

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.pblinc.ca

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    rossypz Icon

    15 Aug 2014 - 00:48
    Hi,I Am Mrs Rose.I am writing to know you more for i have an important issue to discuss with you. for more details write me on This Email: rosse4u2006@hotmail.com wrte to my email..
    God bless.
    Roseline
  2. Photo

    macosxnerd101 Icon

    10 Feb 2014 - 15:57
    We miss seeing you around the Java forums! Hope you are doing well.
  3. Photo

    daonlyillwiz Icon

    26 Sep 2013 - 13:10
    Hey, sorry about removing my posts for the thread you recently locked in the Java forum, i apologize as i was not aware that it would be an issue if i remove the code. Again sorry about that.
  4. Photo

    Flukeshot Icon

    18 Jul 2013 - 18:54
    Where you at, pbl? I think I'm not the only one missing you, dude! :P
  5. Photo

    farrell2k Icon

    11 Jul 2013 - 18:06
    You still alive? :)
  6. Photo

    MacSuibhne Icon

    04 Jun 2013 - 01:17
    Eh thanks for being so helpful and understanding with the problem I have with my course work. The comment "The major question is: "What is your F*** problem ?"
    as you haven't post it in your post(s)
    We are going nowhere so unless you post an intelligent question: Thread closed"
    Was so encouraging for someone like me who is just starting off....it w...
  7. Photo

    MacSuibhne Icon

    04 Jun 2013 - 01:17
    Eh thanks for being so helpful and understanding with the problem I have with my course work. The comment "The major question is: "What is your F*** problem ?"
    as you haven't post it in your post(s)
    We are going nowhere so unless you post an intelligent question: Thread closed"
    Was so encouraging for someone like me who is just starting off....it w...
  8. Photo

    jonnykratz Icon

    03 Nov 2012 - 07:08
    Thanks bro!
  9. Photo

    luka-xavi Icon

    19 Oct 2012 - 14:05
    sir, i would like to learn java applet for my project , but i didnt find any useful website that can help me to learn, all what they post is hello world tutorial , i will appreciate your help if you can
    thanks in advance
  10. Photo

    carnivroar Icon

    26 Jul 2012 - 19:45
    Je rêve d'habiter à Québec un jour, est-qu'il y a beaucoup de travail pour nous les developpeurs là-bas? :)
  11. Photo

    burakaltr Icon

    23 Jul 2012 - 13:01
    Sir, Thank You so much for the Reputation Point. It means a lot to me.
  12. Photo

    braincofe Icon

    04 Jul 2012 - 23:37
    sir pbl plss answer what i post in java..How Find The Largest And Smallest Number Top-down Approach...
    thanks advanced..
  13. Photo

    ILoveJava Icon

    03 Jun 2012 - 17:30
    I love waking up and seeing the Java forum filled with last posted .. by pbl.
  14. Photo

    dinodsja Icon

    27 Apr 2012 - 01:13
    u r great..
    join with us
    www.technew.in
  15. Photo

    nj2012 Icon

    24 Apr 2012 - 20:46
    hello,
    I just wanted to say thank you for helping me with my question
  • (2 Pages)
  • +
  • 1
  • 2