Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 20-10-2004, 08:47 AM   #1 (permalink)
Broken In
 
Join Date: Nov 2003
Posts: 145
Default Help needed from Java geek


this ones related to JAVA programming.

how in Java we can compare to strings.

I am making a small program in which i want to compare two strings.

please help.
harshagarwal is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-10-2004, 11:04 AM   #2 (permalink)
Laptoping
 
Sourabh's Avatar
 
Join Date: Aug 2004
Location: Mumbai
Posts: 2,211
Default wht are u talking abt??

is is regarding java or javascript??
man i know both but i learnt it 2 yrs back by myself so i dunn remember much
well i feel u want this in java
lol lemme recollect something

i guess its tht public static void main ****
then those curly braces {}
declaring statements



hmm but can u temme wht do u mean by comparing 2 strings??
i knw programs to check the given string is a palindrome or not n kinda stuff in java

like MALAYALAM n MALAYLAM
__________________
You could think I'm wrong, but that's no reason to stop thinking.
Sourabh is offline  
Old 20-10-2004, 01:11 PM   #3 (permalink)
Broken In
 
Join Date: Nov 2003
Posts: 145
Default

it is regarding Java.
I am actually making a word game similar to that comes in MID-DAY(a news daily in mumbai).

so in the game user tries to make english words out of given letters.
thus I want to compare the word enterd by user to that in the list(which i will prepare).
harshagarwal is offline  
Old 20-10-2004, 01:43 PM   #4 (permalink)
Wise Old Owl
 
Join Date: Jul 2004
Location: Bangalore
Posts: 1,208
Default

harsh,

thats not too difficult. If you want to find out if two strings are equal then :

if(str.equals(str2))
{
//Do what you need to do here.
}
else
{

}

where str and str2 are two variable of the object String.

hope this helps.
__________________
AMD 64 3500+ Venice
DFI Lan Party Ultra-D
2* 512 MB PdP Memory with 2-2-5L timings
XFX 7900GT 256 MB Card
icecoolz is offline  
Old 20-10-2004, 10:51 PM   #5 (permalink)
Broken In
 
Join Date: Aug 2004
Posts: 190
Default

well to late here.. already ansswered ..
__________________
Attack life, it\'s going to kill you anyway.
walking-techie is offline  
Old 21-10-2004, 07:56 AM   #6 (permalink)
Broken In
 
Join Date: Nov 2003
Posts: 145
Default

hey thanks all of you to solve my problem
harshagarwal is offline  
Old 21-10-2004, 09:48 AM   #7 (permalink)
Bewitched!
 
xenkatesh's Avatar
 
Join Date: Feb 2004
Location: chennai
Posts: 468
Default

hey! i dont know java but i can help u check java.sum.com and also javafile.com u can get some helps and tutorials there.
__________________
Keep your friends close and enemy CLOSER!!!
Ragnarok Online: One World, One Million Possibilities.. :)
xenkatesh is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by abhidev
- by Sujeet
- by Sarath
- by Krow

Advertisement




All times are GMT +5.5. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2