busyme12srv's Profile User Rating: -----

Reputation: -5 Shunned
Group:
Members
Active Posts:
45 (0.06 per day)
Joined:
18-June 12
Profile Views:
411
Last Active:
User is offline Sep 11 2012 01:38 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   busyme12srv has not set their status

Posts I've Made

  1. In Topic: char string to decimal value?

    Posted 30 Jul 2012

    Check this part of the code first:

    if(c >='A'&&c<='F')  
    
         { n = c - 55;while(p>=1){n = n*16;p--;} }  
    
        else if (c>='a'&&c<='f')  
    
        {n = c-85;while(p>=1){n = n*16;p--;}}  
    
        else if(c>='0'&&c<='9')  
    
    


    All if statements with logical operators should be properly bracketted.

    eg. if(c >='A'&&c<='F')

    should be:

    if ((c >='A')&& (c<='F'))
    



    This is because && has the highest priority in precedence list of operators.
    Correct all the If .. stmts in the code.

    :code:
  2. In Topic: Radio button always returns the same value

    Posted 30 Jul 2012

    Check this part of the code:
    .
    .
    .



    else if(seniorRButton.isSelected())

    cost = Double.parseDouble((String)


    .
    .
    .


    It should be :
    else if(seniorRButton.isSelected())
    { cost = Double.parseDouble((String)

    Since right now there is no curly bracket for this elseif part, type = "S" is set always.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Programming Languages:
Some OOps based languages, MSOffice

Contact Information

E-mail:
Private