function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suresh(Suri)Suresh(Suri) 

please tell me below apex class



HI

,

Write a simple app that READS the value of a Field and copies the value of that field into another custom field.

But while copying the data from ONE field to another Field, I need you to use this format.

Input Field data will be in LOWER CASE 

Output Field data will be in the "First Character Uppercase and rest in Lower case"

Examples"

input field = average
output field should be Average

input Field = simple
output field should be Simple

 

 

Thank you in Advance.

SteveBowerSteveBower

This sounds like a school programming assignment.  Is it?  Best, Steve

ngabraningabrani

Take a look at the String methods

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_string.htm

 

You shold be able to use the substring method to get the first element, and the toUpperCase method to convert the first element into upper case.