Câu hỏi của Son Ha

Xin ý kiến về app đơn giản này trong java

yêu cầu là tạo app tìm mã, min, average của một mảng user nhập code mình thế này package ass1_ppl; import java.util.Scanner; public class ArayApp{ public static Scanner sc = new Scanner(System.in); private static int[] arr; public static void InputSeries() { System.out.print("Nhập số ...

Son Ha viết 17:44 ngày 01/10/2018 chỉnh sửa

Về việc in ra float chứa kí tự chữ

package demo_ass; import utils.AttrRef; import utils.DOpt; import utils.DomainConstraint; import utils.NotPossibleException; import utils.OptType; import utils.NotPossibleException; public class HighEarner extends Customer{ @DomainConstraint(type = "Float", mutable =true , optional = false, ...

Son Ha viết 17:32 ngày 01/10/2018 chỉnh sửa

Tại sao khi in float lại có ký tự chữ cái?

public static void main(String[] args) { ArrayList < Customer > a = new ArrayList < Customer > (); Customer h = new Customer(1, "son", "1234556", "phuong"); a.add(h); HighEarner h2 = new HighEarner(2, "d", "12dwdw34556", "ddshuY", (float) 12345.0); a.add(h2); ...

Son Ha viết 17:31 ngày 01/10/2018 chỉnh sửa

Giải thích đề bài sử dụng compareTo()

Program FSIS of a flower shop captures and processes data about an entity named Customer and a specific type of Customer named HighEarner. The former represents customers that are of interest to the shop, while the latter represents wealthy customers whose income are above a given threshold. Figure ...

Son Ha viết 17:26 ngày 01/10/2018 chỉnh sửa
1