⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 float_1.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
/* Date: 25 Aug 1998 16:04:00 -0000From: Andrew Haley <aph@pasanda.cygnus.co.uk>To: java-project@cygnus.comSubject: Help: vtable problem?My little program:-----------------------------------------------------------------------import java.lang.*;  public class widget  {    public static void main (String argv[])    {      int test = Float.floatToIntBits((float)2.0);      String s = Integer.toHexString(test);            System.out.print (s+"\n");    }  }-----------------------------------------------------------------------prints out40000000with Sun's interpreter, but prints outtruewhen compiled with gcj; PrintStream dispatches a string arg as aboolean rather than as a String.  I've tried to rebuild everything.?Thanks,Andrew.*/public class Float_1{  public static void main (String argv[])    {      int test = Float.floatToIntBits((float)2.0);      String s = Integer.toHexString(test);            System.out.print (s+"\n");    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -