網頁

2014年5月27日 星期二

Java作業11建立student物件

類別student

36 則留言:

  1. B10233082 唐偉強2014年5月27日 上午10:39

    package azazazazaza;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class vfvfvfvf {



    public static void main(String[] args) {
    student X=new student("王小名",12334567,70);

    X.show();


    }

    }

    回覆刪除
  2. package hello0527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex2 {

    public static void main(String[] args) {
    student x=new student("屁綱",92,10);
    x.show();
    }
    }

    回覆刪除
  3. package hello0527;
    class Student{
    String name;
    int id;
    int score;
    Student(){
    }

    Student(String name, int id,int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }

    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {
    public static void main(String[] args) {
    Student X=new Student("小明",5,60);
    X.show();
    }
    }

    回覆刪除
  4. package hello527;
    class student{
    String name ;
    int id;
    int score;
    student( ){
    }
    student(String name,int id,int score) {
    this.name =name;
    this.id = id;
    this. score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {
    public static void main(String[] args) {
    student x=new student ("娜娜",2,80);
    x.show();
    }
    }

    回覆刪除
  5. B10233081 藍立凱2014年5月27日 上午10:44

    package hello;
    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex2 {

    public static void main(String[] args) {
    student x=new student("汁綱",92,0);
    x.show();
    }
    }

    回覆刪除
  6. package zxc;
    class student {
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x ;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }

    public class cxz {

    public static void main(String[] args) {
    student x = new student("慾蟑",100,59);
    x.show();
    }

    }

    回覆刪除
  7. package zxc;
    class student {
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x ;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }

    public class cxz {

    public static void main(String[] args) {
    student x = new student("慾蟑",100,59);
    x.show();
    }

    }

    回覆刪除
  8. package Hello527;

    class IcCard{
    String name;
    int id;
    int Score;
    student(String x,int id ,int Score){
    name=x;
    this.id=id;
    this.Score=Score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("Score:"+Score);
    }
    }
    public class Ex1 {
    public static void main(String[] args) {
    Student x=new Student("連于傑",B10233069,80);
    X.show();
    }
    }

    回覆刪除
  9. B10233063 張宜禎2014年5月27日 上午10:47

    package hello0527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("禎禎",63,60);
    x.show();
    }
    }

    回覆刪除
  10. package hello;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("XD",92,10);
    x.show();
    }
    }

    回覆刪除
  11. B10233084 陳億如2014年5月27日 上午10:48

    package hello0527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("1如",84,100);
    x.show();
    }
    }

    回覆刪除
  12. B10233084 陳億如2014年5月27日 上午10:48

    package hello0527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("1如",84,100);
    x.show();
    }
    }

    回覆刪除
  13. B10233061 吳興強2014年5月27日 上午10:49

    class student{
    String name;
    int id;
    int score;

    student(String x,int y,int z){
    name = x;
    id = y;
    score = z;
    }

    void show () {
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score="+score);

    }
    }

    public class ex1 {

    public static void main(String[] args) {


    student X=new student("小強",61,100);
    X.show();

    }

    }

    回覆刪除
  14. package hello;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class hello0527 {

    public static void main(String[] args) {
    student x=new student("如華",75,70);
    x.show();
    }
    }

    回覆刪除
  15. package kevin;

    class ex1 {
    String name;
    int id;
    int score;
    ex1(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }

    public static void main(String[] args) {

    ex1 x=new ex1("小霉",8,90);
    x.show();
    }

    }

    回覆刪除
  16. package ff;

    class IcCard{
    long id;
    int money;
    IcCard(){
    }

    IcCard(long id, int money){
    this.id = id;
    this.money = money;
    }

    void show(){
    System.out.println("id:"+id);
    System.out.println("money:"+money);
    }
    }
    public class dd {
    public static void main(String[] args) {
    IcCard X=new IcCard(0x336789AB,300);
    X.show();

    }

    }

    回覆刪除
  17. B10233097 邱宥甄2014年5月27日 上午10:53

    package qqqq;

    class student{
    String name;
    int id;
    int score;
    student(String x, int id,int score) {
    name = x ;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }

    public class qq {

    public static void main(String[] args) {
    student x =new student("啾啾",3,70);
    x.show();
    }
    }

    回覆刪除
  18. package ff;
    class student{
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name;"+name);
    System.out.println("id;"+id);
    System.out.println("score;"+score);
    }
    }

    public class ss {

    public static void main(String[] args) {
    student X=new student("小華",6,68);
    X.show();

    }

    }

    回覆刪除
  19. B10233098 陳孟緣2014年5月27日 上午10:54

    class student{
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }

    public class ASD {

    public static void main(String[] args) {
    student x=new student("陳緣",6,68);
    x.show();
    }
    }

    回覆刪除
  20. package xx;
    class student{
    String name;
    int id;
    int score;
    student(String x, int id,int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name;"+name);
    System.out.println("id;"+id);
    System.out.println("score;"+score);
    }
    }
    public class xxx {


    public static void main(String[] args) {
    student X =new student("A夢",6,68);
    X.show();

    }



    }

    回覆刪除
  21. package asdfghjk;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class zxcvbnm {



    public static void main(String[] args) {
    student X=new student("王小名",12334567,70);

    X.show();


    }

    }

    回覆刪除
  22. package hello;
    class student{
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class hello {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    student x=new student("小華",6,68);
    x.show();
    }

    }

    回覆刪除
  23. b10233068 邱佳函2014年5月27日 上午11:15

    package hello527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("佳函",68,100);
    x.show();
    }
    }

    回覆刪除
  24. package hello0527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("阿玲",65,100);
    x.show();
    }
    }

    回覆刪除
  25. B10233086 張進億2014年5月27日 上午11:17

    package yoooooo;
    class student{
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("姓名"+name);
    System.out.println("學號"+id);
    System.out.println("分數"+score);
    }
    }
    public class yooooo2 {

    public static void main(String[] args) {
    student X=new student("蘿莉舔舔",10233086,100);
    X.show();
    }
    }

    回覆刪除
  26. B10233062 黃聖評2014年5月27日 上午11:18

    package she1111;
    class student{
    String name;
    int id;
    int score;
    student(String x,int id,int score){
    name=x;
    this.id = id;
    this.score = score;

    }


    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class she1111 {
    public static void main(String[]args){
    student X=new student("小華",6,68);
    X.show();
    }
    }

    回覆刪除
  27. package ff;

    class IcCard{
    long id;
    int money;
    IcCard(){
    }

    IcCard(long id, int money){
    this.id = id;
    this.money = money;
    }

    void show(){
    System.out.println("id:"+id);
    System.out.println("money:"+money);
    }
    }
    public class dd {
    public static void main(String[] args) {
    IcCard X=new IcCard(0x336789AB,300);
    X.show();

    }

    }

    回覆刪除
  28. package ff;
    class student{
    String name;
    int id;
    int score;
    student(String x, int id, int score) {
    name = x;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name;"+name);
    System.out.println("id;"+id);
    System.out.println("score;"+score);
    System.out.println("========================================");
    }
    }

    public class ss {

    public static void main(String[] args) {
    student X[]=new student[3];
    X[0]=new student("小三",3,59);
    X[1]=new student("白杞",6,78);
    X[2]=new student("小小",9,99);
    for(int i=0; i<X.length;i++)
    X[i].show();

    }

    }

    回覆刪除
  29. package hjsjs;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }

    }

    public class jsjsjsjj {

    public static void main(String[] args) {
    student X=new student("胖仔",103,59);

    X.show();

    }

    }

    回覆刪除
  30. B10233087 黃少洋2014年5月27日 上午11:45

    package QWERTYUI;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class TYUJK,L {



    public static void main(String[] args) {
    student X=new student("王小名",12334567,70);

    X.show();


    }

    }

    回覆刪除
  31. Y10211064 黃耀葦2014年5月27日 上午11:46

    package DDDDDFF;

    class SSSDFFVF{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class vfvfvfvf {



    public static void main(String[] args) {
    student X=new student("王小名",12334567,70);

    X.show();


    }

    }

    回覆刪除
  32. B10233110 徐上竣2014年5月27日 上午11:47

    package ASD123;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class vfvfvfvf {



    public static void main(String[] args) {
    student X=new student("王BB",12334567,70);

    X.show();


    }

    }

    回覆刪除
  33. B10233073 楊博宇2014年5月27日 上午11:48

    package roger665;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class vfvfvfvf {



    public static void main(String[] args) {
    student X=new student("王xx",12334567,70);

    X.show();


    }

    }

    回覆刪除
  34. B10233074 許逸憲2014年5月27日 上午11:48

    package GFFTJGFFJ;

    class student{
    String name;
    int id;
    int score;
    student(String name, int id, int score) {
    super();
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class vfvfvfvf {



    public static void main(String[] args) {
    student X=new student("王GG",12334567,70);

    X.show();


    }

    }

    回覆刪除
  35. package hello;
    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex2 {

    public static void main(String[] args) {
    student x=new student("綱",92,0);
    x.show();
    }
    }

    回覆刪除
  36. package hello527;

    class student{
    String name;
    int id;
    int score;
    public student(String name, int id, int score) {
    this.name = name;
    this.id = id;
    this.score = score;
    }
    void show(){
    System.out.println("name:"+name);
    System.out.println("id:"+id);
    System.out.println("score:"+score);
    }
    }
    public class ex1 {

    public static void main(String[] args) {
    student x=new student("思涵",68,100);
    x.show();
    }
    }

    回覆刪除

HTML 編輯器