An Automatic Data Conversion : Data Type « JSP « Java






An Automatic Data Conversion

<HTML>
  <HEAD>
    <TITLE>An Automatic Data Conversion</TITLE>
  </HEAD>

  <BODY>
    <H1>An Automatic Data Conversion</H1>
    <%
        double double1;
        float float1 = 1;

        double1 = float1;

        out.println("double1 = " + float1);
     %>
  </BODY>
</HTML>


           
       








Related examples in the same category

1.double: Finding Average Grades
2.Casting to a New Type
3.Scriptlet Example