You need to sign in to do that
Don't have an account?
Hannah Campbell
Can someone help me here. Im trying to convert this java code to apex code
Can someone help me here. Im trying to convert this java code to apex code
This is the java code:
String stringVar = "";
if(stringVar.isEmpty()){
System.out.println("Hello World");
}
This is the code I got so far and im not sure if it is correct:
String stringVar = '';
if(stringVar.isEmpty()){
system.debug('Hello World');
}
All Answers
Below is the sample code.I would suggest you refer below document to know all the methods with String class in salesforce.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.
Best Regards,
Sandhya