• mahisha
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
My Controller :

public class clsmap{
public String s{public get;public set;}
public clsmap()
{
Map<String,String> strmap=new Map<String,String>{'a'=>'apple','c'=>'cat'};
strmap.put('p','pen');
strmap.get('b');
System.debug(strmap.get('a'));
for(String s:strmap.keyset()){
if(s=='b'){
s+='cil';
system.debug(s);
}
}
}
}
My Page:
<apex:page controller="clsmap">
<apex:form >
Values:
<br/>
    <apex:outputtext value="{!s}"/><br/>
</apex:form>
</apex:page>

here i want to display a value of a string s.can any one help me pls?

Thanks
My Controller :

public class clsmap{
public String s{public get;public set;}
public clsmap()
{
Map<String,String> strmap=new Map<String,String>{'a'=>'apple','c'=>'cat'};
strmap.put('p','pen');
strmap.get('b');
System.debug(strmap.get('a'));
for(String s:strmap.keyset()){
if(s=='b'){
s+='cil';
system.debug(s);
}
}
}
}
My Page:
<apex:page controller="clsmap">
<apex:form >
Values:
<br/>
    <apex:outputtext value="{!s}"/><br/>
</apex:form>
</apex:page>

here i want to display a value of a string s.can any one help me pls?

Thanks