aks29921's Profile
Reputation: 84
Whiz
- Group:
- Contributors
- Active Posts:
- 230 (0.17 per day)
- Joined:
- 24-August 09
- Profile Views:
- 2,937
- Last Active:
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
-
raghav.nagana... 
05 Dec 2012 - 07:55 -
ahamedirshad123 
20 Apr 2011 - 23:53 -
Crunch 
11 Aug 2010 - 05:21 -
ashleyBrooke 
03 Aug 2010 - 03:42 -
osama.rahat 
19 Feb 2010 - 05:45
Posts I've Made
-
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. -
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 -
In Topic: Code not reading .txt file
Posted 19 Sep 2012
On what path in the workspace have you kept your text file? -
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? -
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:
-
http://
Friends
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
aks29921 has no profile comments yet. Why not say hello?