class Test
{
string s1="Hello",s2="lo";
System.out.println((s1=="Hel"+"lo"));
System.out.println((s1=="Hel"+lo));
}
The above program prints
true false
I just want to know why the answer of both the println method differs.
Related Tutorials/Questions & Answers:
Help me on the given problem of StringHelp me on the
given problem of String class Test
{
string s1="Hello",s2="lo";
System.out.println((s1=="Hel"+"lo"));
System.out.println((s1=="Hel"+lo));
}
The above program prints
true
help me to solve this problem..help me to solve this
problem..
Given below is a class definition... Book {
String title; //bookâ??s title
double price; //bookâ??s price
public Book(
String t, double p) {
title = t;
price = p;
}
public
Advertisements
please help me to this problem..please
help me to this
problem.. i wrote a program like keyboard... inside the JTextField) but i want to make this program to let
me write where i clicked (i.e allows
me to write any thing at the field where i clicked
please help me in coding this given programplease
help me in coding this
given program consider the below series:
1,2,1,3,2,5,3,7,5,11,8,13,13,17,.....
this series is a mixture of 2 series-all the odd terms in this series from a fibonacci series and all the even terms
please help me in coding this given programplease
help me in coding this
given program consider the below series:
1,2,1,3,2,5,3,7,5,11,8,13,13,17,.....
this series is a mixture of 2 series-all the odd terms in this series from a fibonacci series and all the even terms
facing problem plz help me out - FrameworkFacing
problem plz
help me out hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell
me what to do... error:The requested resource (Servlet servlet
problem in writing coding. Please help me.problem in writing coding. Please
help me. Hi sir, my name is Logeswaran. I have
problem in writing JSP coding for my university assigments... like? I'm really stuck on this. Please
help me.
By the way, I'm using Access
help mehelp me please send
me the java code to count the number of similar words in
given string and replace that word with new one
help mehelp me Hi I'm loges. I'm doing my final year project now, I have some
problem in my project and i need some
help on it. NowI'm doing a site... button, and nationality I'm using dropdown list. Please
help me. your kindness
help me the order,
Fourth button is Find length of text. and there are panels. Please
help me...
help me Dear sir/medam
i would like to know how to use the java
string class method
my programm have four button,(enter the text) that first
help mehelp me i have done as u directed but nothing happens gud to
me..... . i am using netbeans is that matter at all
help me and take
me out from trouble
where to store jfree api to use it for j2ee based project
help mehelp me HI. Please
help me for doing project.
i want to send control from one jsp page to 2 jsp pages... is it possible? if possible how to do
help me...help me... there is the picture
given
- cat
- dog
- rabbit
- mouse
a. create a class name
b. create its attributes (at least 3 attributes...
create the objects from the class based on the picture
given.
create a statement
help mehelp me hi sir pls tell
me
how to use ajax form validatin from very simple way with two ot three text field pls
help me use ajax in php
my email id is:- rohit11tripathi@gmail.com
pls sir give
me some vasic information i know
Help meHelp me HI I am using Tomcat6.0 this is the
problem i got wen i run...{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String name=request.getParameter("name");
String pass=request.getParameter
help me..help me..
what are the component needed by grid computing, cloud computing and ubiquitous computing?
discuss about the security of above computing.
difference between that 3 computing
help mehelp me MY GLASSFISH SERVER NOT START PROPERLY
help me
warning shows
DPL5404:Specification-Version for the optional package [ GNUJAXP ] in the jarfile [ C:\Program Files\Java\jdk1.7.0_02\jre\lib\ext\gnujaxp.jar
help me...help me... Write a program that inputs four words and them displays all possible permutations of the words. So,
for example, if the words mad, dog, bites and man are entered, then the following are output :
man bites mad dog
help me..help me.. Write a program that inputs four words and them displays all possible permutations of the words. So,
for example, if the words mad, dog, bites and man are entered, then the following are output :
man bites mad dog
mad
Help meHelp me HI I am using Tomcat6.0 this is the
problem i got wen i run.../html"); PrintWriter out=response.getWriter();
String name=request.getParameter("name");
String
pass=request.getParameter
help me..help me.. Design and write a class named Person and its two subclasses named Student and Employee.
Make Lecturer and Admin subclasses of Employee.
A person has a name, address, phone number and email address. A student has
help mehelp me Create a GUI application that allows a user to select a text file (using the JFileChooser). The program will then allow the user to do... the StringTokenizer class or the
String split() method to count the number of words which
Help meHelp me Hi,
LWUIT is working in eclipse j2me for Symbian OS
help mehelp me how to print from a-z, A-Z with exact order using for loop?
Thanks for all concern
Help MeHelp Me What is the source code for Sample example for Mortgage Calculator in J2ME language for developing Symbian
Help meHelp me plz i want code of program to add real numbers and magic numbers in java
example
this input :- 5+3i-2+3i
output:- 3+6i
help mehelp me pls... xplain dis code:-
function go() {
window.location.replace("logout.jsp",'window','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
self.close
Help meHelp me hello!!!!.
i have a Excel file which includes 4 columns and somewhat 8500 rows.these rows i have printed in SQL thru Excel file
and i have 1 MYSql database which includes all those 4 fields i have defined in excel file
help me help me I have a quastion a bout array whic is>>>
1-write aprogram to diplay a multiplication table for 1to 10 by entering the start number and the end number.
EXAMPLE:
ENTER START NUMBER:1
ENTER END NUMBER:3
Compare String with given String arraylists.Compare
String with
given String arraylists. I have one
String for example abcThirtyFour. i have two arraylists of
string. one contains one, two....
i was thinking of comparing
given string with both the arraylists. but, i
Pls help me with stringsPls
help me with strings To reverse a every other word in a
string.
Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message
Pls help me with stringsPls
help me with strings To reverse a every other word in a
string.
Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message
string array based problemstring array based problem R/sir,
firstly thanks to
help me so much.
but now it can sort
string very well but in case of integers as it treats integers here as
string, it sorting like this:
i/p: 12 14 11 3
please help meplease
help me Dear sir, I have a
problem. How to write JSP coding, if a user select a value from drop down list for example department, the another... before. This name list should get from the database. Please
help me.
By the way, I'm
help me to solve this question...help me to solve this question...
Given below is a class definition...:
class Book {
String title; //bookâ??s title
double price; //bookâ??s price
public Book(
String t, double p) {
title = t;
price = p;
}
public
Please help me urgent...........Please
help me urgent........... For what kind of a
problem would use a Tree Set and not a Tree Map
For what kind of a
problem would use a Tree Map and not a Tree Set
Hello Friend,ADS_TO_REPLACE_1
If you want
help me in solving this errorhelp me in solving this error Hello,
i have installed tomcat 6.0, i... that
problem may be in your code. So please post your code.
Thanks
Hello Friend,
It seems that
problem may be in your code. So please post your code.
Thanks
Can someone help me with this?Can someone
help me with this? I have this project and i dont know how to do it. Can someone
help me? please?
Write a java class named "PAMA..., Multiply, Divide)
Help me please! Thanks in advance!
import
help me - Java Beginnershelp me helo guys can you share
me a code about Currency Conversion.Money will convert according to the type of currency.would you
help me please... into 2 decimal places sample 1.25)
Mexican_________
guys
help me..thank