Back to project page openaccessbutton.
The source code is released under:
MIT License
If you think the Android project openaccessbutton listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.openaccessbutton.openaccessbutton.advocacy; /*from ww w . j av a 2s. c om*/ /** * Created by rickards on 9/30/14. */ public class Question { String mQuestion; String mAnswer; public Question(String question, String answer) { mQuestion = question; mAnswer = answer; } public String question() { return mQuestion; } public String answer(String placeholder) { if (mAnswer == null || mAnswer.length() == 0) { return placeholder; } else { return mAnswer; } } }