<div dir="auto">I just think you should follow the principle of least astonishment.  Is the array ever going to have multiple values?<div dir="auto"><br></div><div dir="auto">Just thinking.</div><div dir="auto"><br></div><div dir="auto">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 26, 2017 3:24 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 1/26/2017 11:32 AM, <a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 [...]<br>
<br>
I am not sure why you are creating a string array out of one element.  I think this is more correct, but you can have it your way if you like:<br>
<br>
./www_web3d_org/x3d/content/ex<wbr>amples/X3dForWebAuthors/Chapte<wbr>r14_Prototypes/WhereAmIExample<wbr>.java:              FontStyle0_2_15_0_0.setJustify<wbr>(new String[] {"MIDDLE","MIDDLE"});<br>
<br>
Maybe support both the array (my way) and a X3D MFString (a single String).<br>
</blockquote>
<br>
You should find that multiple type values are already available for a variety of getter and setter methods, for example String and String array and ArrayList<String> and MFString.  Also for outlier type conversions there are some utility functions in type objects SFString/MFString etc. that complement the rich set of features already available in Java types.<br>
<br>
        <a href="http://www.web3d.org/specifications/java/javadoc/index.html" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/javadoc/index.html</a><br>
<br>
        <a href="http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/java/Text/FontStyleObject.html" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/javadoc/org/web3d/<wbr>x3d/java/Text/FontStyleObject.<wbr>html</a><br>
<br>
        <a href="http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/java/fields/package-summary.html" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/javadoc/org/web3d/<wbr>x3d/java/fields/package-<wbr>summary.html</a><br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzma<wbr>n</a><br>
</blockquote></div></div>