How to get the YAML data and use it in Java

1. Create a YAML file. Below is the example

OnBoardingActivity:
getStartedButton: getStarted_btn

GetStartedActivity:
phoneNumberEditText: phone_number_layout
continueButton: send_sms

android: studio

2. Download snakeyaml jar file.
3. Create a java file.

Run the program. Below is the output
studio
{getStartedButton=getStarted_btn}
getStarted_btn

Leave a Reply

Your email address will not be published. Required fields are marked *