Go Back   Webmaster Centre News and Discussion Forum > Website Developement > Web Programming

Web Programming Post your questions, tips and opinions on web scripting, programming languages. Subject areas include Java, Java Script, PHP, ASP, .Net, XML, Perl, HTML, Flash,etc

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2008, 06:19 AM   #1 (permalink)
Junior Member
 
Default can anyone write the following in java language?

write a statement that will print an approriate message if first and second refer to the same String instance.


first and second refer to what needs to be in code
geekguy is offline   Reply With Quote
Old 05-01-2008, 06:20 AM   #2 (permalink)
Junior Member
 
Default

String a = "Hello";
String b = "Hello";

if( a.equals(b) )
System.out.println("Both strings are the same");
else
System.out.println("The strings are different");
shadow3dcaster is offline   Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl....did it write in correct style ?!? viki k Web Programming 0 04-30-2008 05:34 PM
Why cannot a win2000 prof workstation write in program files folder locally if it george.hungary Domain Name 1 04-29-2008 04:24 AM
JAVA help? swimmerxc Web Programming 0 04-28-2008 08:23 PM
How to write net ionic for H2C2O4 2H20 + 2NaOH ---> NaC2O4 + 4H20? Jake General Chat 0 04-28-2008 07:19 PM
I'm trying to make a jeopardy game using JAVA language.? hermione Web Programming 0 04-28-2008 06:32 AM



All times are GMT +1. The time now is 11:11 AM.
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Provided By: Wrestling Clique - Wrestling Forums

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44