Jump to content

Java Help


Recommended Posts

Posted

use this System.out.println(value.length()) inside if condition ;

 

You have to get null pointer exception .. if not then we are assuming wrong.

 

5
22
1
4
4
4
2
4

 

Posted

this is just to make sure you are not printing "null" string.
 

 

once aa values kanukkunnaka aaa values annitini ela add cheyydam?
 

Posted

5
22
1
4
4
4
2
4

 

 

searchText + "/" + tags + "/" + category + "/" + workflowStatus + "/" +  sortBy + "/" +   sortType + "/" +  maxResults + "/" + pageIndex

 

Since these are null...they get added as "null" string. so length is 4.

I mean your searchText became as - Crisp/<tags>/0/null/null/null

 

when you split they came back as "null" string with length 4... so if condition will not catch this as null value.

Posted

mee lo java pina call evaru theesukuntaru, job vacheyali theesukunte, confidece unte cheppandi, male candidates,  monna friend adigadu evarunna unte cheppu ani, vadiki interview finalise ayyela undanta

Posted

String is like God. it turns anything into itself ... I mean

 

string ki emii add chesina string ayipothadiii ... including null.

 

Posted

mee lo java pina call evaru theesukuntaru, job vacheyali theesukunte, confidece unte cheppandi, male candidates,  monna friend adigadu evarunna unte cheppu ani, vadiki interview finalise ayyela undanta

 

How many yrs experience ?? entha isthadu me friend ?

Posted

String is like God. it turns anything into itself ... I mean

 

string ki emii add chesina string ayipothadiii ... including null.

 

ya ya got it bhayya......

Posted

braces pettu null tharvatha

 

 

bhayya idhi work ayye avakasam undha?

 

single line of code kadha ni choosthunna....

Posted

bhayya idhi work ayye avakasam undha?

 

single line of code kadha ni choosthunna....

 

ltt

Posted

bhayya idhi work ayye avakasam undha?

single line of code kadha ni choosthunna....

avvudhhanukunta .. Nen eclipse lo try cheyale
Posted

tom sodarab , meeru Java tech aaaa??? 

avvudhhanukunta .. Nen eclipse lo try cheyale

 

Posted

While adding strings itself, check for null values and add empty strings instead of nulls

When you split check for empty string insured of null values in if condition

×
×
  • Create New...