GithubHelp home page GithubHelp logo

btvn_java_2019's Introduction

btvn_java_2019's People

Contributors

tattrung15 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

btvn_java_2019's Issues

Tạo một Knight và cho anh ta sử dụng kĩ năng và hiển thị ra thông số sau mỗi lần sử dụng. A nghĩ là sẽ dùng đến khi hết MP chứ nhỉ????

public class RunMain {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Knight knight = new Knight();
String ten;
int mau, nangluong;
System.out.print("Nhập tên: ");
ten = scanner.nextLine();
System.out.print("Nhập máu: ");
mau = scanner.nextInt();
System.out.print("Nhập năng lượng: ");
nangluong = scanner.nextInt();
knight.setName(ten);
knight.setHP(mau);
knight.setMP(nangluong);
knight.Heal();
knight.thongso();

Đề bài " 1.Tạo và nhập mảng mới với n số nguyên " mà

System.out.println("\n----------------------MENU----------------------");
System.out.println("1. Hiển thị mảng vừa tạo");
System.out.println("2. Thêm một phần tử vào vị trí thứ k");
System.out.println("3. Xóa một phần tử ở vị trí thứ k");
System.out.println("4. Đảo ngược mảng");
System.out.println("5. Hiển thị số a[1] và các số chia hết cho a[1]");
System.out.println("6. Thoát.");

class SinhVien a đâu có cho phương thức nhập với xuất.

public void nhap(){
Scanner scanner = new Scanner(System.in);
super.nhap();
System.out.print("Nhập mã sinh viên: ");
maSV = scanner.nextLine();
System.out.print("Nhập ngành học: ");
nganh = scanner.nextLine();
System.out.print("Nhập khóa học: ");
khoaHoc = scanner.nextInt();
}
public void xuat(){
super.xuat();
System.out.println("Mã sinh viên: " + maSV);
System.out.println("Ngành học: " + nganh);
System.out.println("Khóa học: " + khoaHoc);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.