私はスカラで文字列形式のソリューションを探しています。私は以下の文字列を持っています:スカラの文字列フォーマット
str = {"card_id" : %s,"cust_id": %s,"card_info": {"card_type" : "%s","credit_limit": %s},"card_dates" : [{"date":"%s" },{"date":"%s" }]}
ここでは、"%S"
を文字列値に置き換えます。 Scalaに関数があるので、その関数を適用して適切な結果を得ることができますか?
私はstring.format("%s", str, arrayofvalue)
を試しましたが、適切な結果が得られていません。
ご返信ありがとうございます。それは正常に動作しています。 –