❶ JAVA创建一个桌子类
class Table{
public String tableName;
public float tableWeight;
public float tableWidth;
public float tableLength;
public float tableHeight;
public Table(String name, float weight, float width, float length, float height ){
tableName = name;
tableWeight = weight;
tableWidth = width;
tableLength = length;
tableHeight = height;
}
public float Area(){
return tableWidth * tableLength;
}
public void ChanageWeight(float weight){
tableWeight = weight;
}
public void Display(){
System.out.println("桌子名称: " + tableName + " 重量是: " + tableWeight +
" 桌面宽度: " + tableWidth + " 桌面长度: " + tableHeight + " 桌子高度: " + tableHeight);
}
}
public class Main {
/** Creates a new instance of Main */
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Table myTable = new Table("书桌",45,20,40,60);
myTable.Display();
System.out.println("改变重量后为");
myTable.ChanageWeight(30);
myTable.Display();
}
}
❷ 那些材料可以用来制作大桌子的桌面
一般都行,只要木头不带水分就可以,例如樟木,楠木,当然你有钱可以用更好的。
❸ 制作这种桌子的桌面是用的什么胶水 ,在线等
AB组分的环氧快速胶或是丙烯酸组分的AB胶都可以。
❹ 创新桌子
[创新桌子]
我家有一张创新桌子,它的外形与普通桌子无甚差别,创新桌子。创新,就在它的结构和供用上。 这张桌子的桌面是呈正方形,四条腿一条也不少。奇特的是,它的上下两个桌面,上大下小。大桌面可以任意镶取。取下大桌面,下面便是小桌面,小桌面的中间据有一个圆形的洞。这不,转眼间就变成了一张火锅桌,中学生作文《创新桌子》。在家里吃火锅,虽有一番情趣。它不仅可以变火锅桌,还可以变麻将桌呢!只要将大桌面取下,翻转,桌子就摇身变成了麻将桌。它的桌面铺有麻将布,四边用木条封住。这一是为了很好地与下边的小桌面镶,二是给砌麻将带来方便。这可是专门为妈妈这个“麻将迷”准备的。
〔创新桌子〕【征服畏惧、建立自信的最快最确实的方法,就是去做你害怕的事,直到你获得成功的经验。】
❺ 我的世界创造版里怎么做桌子
下载MOD,有一些有抄桌椅的,如果没有MOD也可以,桌子的话,用木栅栏做桌子腿,半砖类的做桌面。椅子可以放一个楼梯(不是放在墙上的梯子),在楼梯的左右两边放块木牌(具体叫什么忘了,可以输入文字的),看起来就像椅子的扶手。通了电的活塞也可以当桌子或椅子。没有MOD的话做起来很别扭的……用MOD的话好一些,MOD整合包可以去MINECRAFT贴吧去看。
❻ Java程序:创建一个桌子(Table)类,该类中有桌子名称、重量、桌面宽度、长度和桌子高度属性,以及以下几个
package com.kaylves;
public class Table {
private String tableName;//名称
private int weight; //重量
private int length; //长度
private int height; //高度
private int width; //宽度
public Table(){
tableName="";
}
public Table(String tableName,int weight,int length,int height,int width){
this.tableName=tableName;
this.weight=weight;
this.length=length;
this.height=height;
this.width=width;
}
public int getArea(){
return length*width;
}
public void display(){
System.out.println("桌名称:"+this.tableName);
System.out.println("重量:"+this.weight);
System.out.println("长度:"+this.length);
System.out.println("高度:"+this.height);
System.out.println("宽度:"+this.width);
System.out.println("面积:"+this.getArea());
}
public void changeWeight(int w){
this.weight=w;
}
public static void main(String[] args){
Table table = new Table("小桌子",20,50,20,20);
int area=table.getArea();
table.changeWeight(30);
table.display();
}
}
❼ 如何创造桌面新文件夹
鼠标点击右键——新建——文件夹,输入文件夹名字,ok 什么是鼠标就是你电脑桌子上手里拿的那只像老鼠一样的你点图标用的那个右边的键点一下然后出来几个提示你就选择!新建-然后在选择文件夹就搞定了哦
❽ 制作一张桌子要用一个桌面和4条桌腿,1立方米木材可制作20个桌面,或者制作400条桌腿,现有12立方米木材,
❾ java: 创建一个桌子Table类,该类中有桌子名称,重量,桌面宽度,长度及桌子高度属性。
public class Table {
// 名称
private String name;
// 重量
private float weight;
// 宽度
private float width;
// 高度
private float height;
// 长度
private float length;
public Table() {
}
// 带4个参数的构造方法初始化所有数据成员
public Table(float weight, float width, float height, float length) {
super();
if (weight < 0 || height < 0 || width < 0 || length < 0) {
System.out.println("桌子的重量,宽度、长度和高度初始化时不能为负数");
} else {
this.weight = weight;
this.width = width;
this.height = height;
this.length = length;
}
}
// 计算桌面面积
public int area() {
return (int) (this.length * this.width);
}
public void display() {
System.out.println("名字:" + name + ";桌面长度:" + length + ";桌面宽度:" + width
+ ";重量:" + weight+";高度:"+height);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public float getWeight() {
return weight;
}
public void setWeight(float weight) {
if (weight < 0) {
System.out.println("桌子的重量不能为负数");
} else {
this.weight = weight;
}
}
public float getWidth() {
return width;
}
public void setWidth(float width) {
if (width < 0) {
System.out.println("桌子的宽度不能为负数");
} else {
this.width = width;
}
}
public float getHeight() {
return height;
}
public void setHeight(float height) {
if (height < 0) {
System.out.println("桌子的高度不能为负数");
} else {
this.height = height;
}
}
public float getLength() {
return length;
}
public void setLength(float length) {
if (height < 0) {
System.out.println("桌子的长度不能为负数");
} else {
this.length = length;
}
}
}
另外 5个属性 4个参数 初始化全部 不能理解
❿ 制作一张桌子要用一个桌面和4条桌腿,1m的立方木材可制作20个桌面,
解:设用X方做桌腿。
400X=20*(12-X)*4
400X = 80*(12-X)
400X=960-80X
480X=960
X=2
12-2=10(方)
答:2方木料可做桌腿800条,10方木料可做桌面200张。这样做桌腿刚好是桌面的4倍,满足:一张桌子要用一个桌面和4条桌腿,而且材料刚好用完。