aks29921's Profile User Rating: -----

Reputation: 84 Whiz
Group:
Contributors
Active Posts:
230 (0.17 per day)
Joined:
24-August 09
Profile Views:
2,937
Last Active:
User is offline Dec 05 2012 07:50 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   aks29921 has not set their status

Posts I've Made

  1. In Topic: Hangman

    Posted 5 Dec 2012

    i think you are looking for something like

     if (firstLetter.equals(secretWord.substring(i, i+1)))
     {
      guessCorrect = true;
     }
     else
     {
      guessCorrect = false;
     }
    
    


    without the else condition, guessCorrect will be true even if any one letter entered matches that in the secret word.
  2. In Topic: show button-jsp

    Posted 6 Nov 2012

    from your code, it can be clearly seen that button will be visible only if data exists.

    you are writing code for button inside the
    if (i!=0)
    


    change this according to what you want to do
  3. In Topic: Code not reading .txt file

    Posted 19 Sep 2012

    On what path in the workspace have you kept your text file?
  4. In Topic: Can't find number of 'a' letters in word

    Posted 16 Sep 2011

    you need to check your if condition.
    can you tell why are you doing an indexOf?
  5. In Topic: In my code how can I stop it from generating negative numbers?

    Posted 16 Sep 2011

    You are facing this problem as you are simply checking for N>0 in your for loop. In your eg, even if 1 bottle is left... this condition will be true and your loop iterates 1 more time than desired, hence giving the negative value.

    So my suggestion is you need a bit more of a logic there... Think about using the value of your 'Taken' variable and you'll be fine.

My Information

Member Title:
D.I.C Head
Age:
26 years old
Birthday:
October 14, 1986
Gender:
Years Programming:
12
Programming Languages:
C,C++,Java,JSP,JDBC,VB.NET,C#.NET,ASP.NET

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

aks29921 has no profile comments yet. Why not say hello?