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

please tell me below apex class



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"


input field = average
output field should be Average

input Field = simple
output field should be Simple



Thank you in Advance.


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


Take a look at the String methods


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.