2016年5月27日

摘要: package com.yichang; import java.util.*; public class Test2 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("请输入数字:"); ... 阅读全文
posted @ 2016-05-27 20:23 煜渝 阅读(4876) 评论(0) 推荐(0) 编辑
摘要: 定义一个“点”(Point)类用来表示三维空间中的点(有三个坐标)。要求如下: (1)可以生成具有特定坐标的点对象。 (2)提供可以设置三个坐标的方法。 (3)提供可以计算该“点”距原点距离平方的方法。 (4)编写主类程序验证。 阅读全文
posted @ 2016-05-27 11:39 煜渝 阅读(10728) 评论(0) 推荐(0) 编辑

导航