易截截图软件、单文件、免安装、纯绿色、仅160KB

张孝祥《Java就业培训教程》源代码 02 部分

《Java就业培训教程》 作者:张孝祥 书中源码
《Java就业培训教程》P34源码
程序清单:Promote.java
class Promote
{
 public static void main(String args[])
 {
  byte b = 50;
  char c = 'a';
  short s = 1024;
  int i = 50000;
  float f = 5.67f;
  double d = .1234;
  double result = (f * b) + (i / c) - (d * s);
  System.out.println((f * b) + " + " + (i / c) + " - " + (d * s));
  System.out.println("result = " + result);
 }
}
《Java就业培训教程》P35源码
程序清单:TestScope.java
public class TestScope
{
 public static void main(String[] args)
 {
  int x = 12;          
  {
   int q = 96;  // x和q都可用
   System.out.println("x is "+x);
   System.out.println("q is "+q);
  }
        q = x;                 /* 错误的行,只有x可用, q 超出了作用域范围 */
        System.out.println("x is "+x);     
 }
}
《Java就业培训教程》P37源码
程序清单:TestVar.java
public class TestVar
{
    public static void main(String [] args)
    {
        int x;//应改为int x=0;
        x=x+1;   //这个x由于没有初始化,编译会报错。
        System.out.println("x is "+x);
 }
}
程序清单:Func1.java
public class Func1
{
 public static void main(String [] args)
 {
 /* 下面是打印出第一个矩形的程序代码*/
  for(int i=0;i<3;i++)
  {
   for(int j=0;j<5;j++)
   {
    System.out.print("*");
  &


相关文档:

sql 2005 存储过程分页 java 代码

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--每页显示记录条数
@currentpage int output,--第几页
@orderid nvarchar(50),--主键排序
@sort int,--排序方式,1表示升序,0表示降序排列 ......

Myeclipse 8 keygen java source

public class MyEclipseGen {
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up ......

在尚学堂学完java让我轻松搞定工作

在尚学堂学完java让我轻松搞定工作
【学员故事】来自尚学堂真人真事                                       &n ......

java中最常用的集合 详细讲解


/**我这只讲 ListArray ,ListedList,HashMap
//ListArray 它是一个实现了List接口的类 ,List继承collection接口
//调用import java.util.ArrayList包,(这里两者任选其一) 完整的java集合存放在java.util包中
//特点:
1>.List是有序的集合
2>.List可以有重复的元素值
3>.使用索引来精确的访问元素值,
4& ......

java 实现中英文混时得到长度 过长字符替换

java 代码实现
 public static boolean isLetter(char c) { 
                 int k = 0x80; 
                 return c / k == 0 ? true : false;& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号