Jump to content
Phishing Emails & YouTube Messages - Fake Giveaway Read more... ×
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited


This user doesn't have any awards

About buklu

  • Title

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. buklu

    number of student plus 1

    output:0 John Chan how do i modify the number of student to 1 not 0? public class Student { private static int numberOfStudent=0; public String name; public Student(String name) { setName(name); } public Student(int numberOfStudent) { numberOfStudent++; } public void setName(String name) { this.name=name; } public int getNumberOfStudent() { return numberOfStudent; } } public class TestStudent { public static void main(String[] args) { // TODO Auto-generated method stub Student stu1=new Student("John Chan"); System.out.println(stu1.getNumberOfStudent()); System.out.println(stu1.name); } }
  2. buklu

    what is the problem of my code?

    so how to rewrite it?
  3. public class SimpleClass { public int data; public SimpleClass(int d) { if(d>0) data=d; else data =0; } } public class SimpleClassTest { public static void main(String[] args) { // TODO Auto-generated method stub SimpleClass myClass=new SimpleClass(10); System.out.println(myClass.data); myClass.data=-5; System.out.println(myClass.data); } }
  4. buklu

    looking for help on java

    what is wrong on my code?
  5. buklu

    java output not newline!

    can you debug for me please!
  6. New salary is incorrect! import static java.lang.System.out; public class Employee { private String name; private int salary; public Employee() { this.name=name; } public Employee(int salary) { this.salary=salary; } public void displayDetail() { out.print("Employee's name :"); out.print(name); out.print(", salary :"); out.print(salary); } public double raiseSalary(double percentage) { return salary*percentage; } public String getName() { return name; } public void setName(String n) { name = n; } public int getSalary() { return salary; } public void setSalary(int s) { salary = s; } } import static java.lang.System.out; public class TestEmployee { public static void main(String[] args) { // TODO Auto-generated method stub Employee emp1 = new Employee(); Employee emp2 = new Employee(); emp1.setName("Chan Tai Man"); emp1.setSalary(12000); emp2.setName("Tam Ping Shing"); emp2.setSalary(13500); emp1.displayDetail(); out.println(emp1.raiseSalary(1.05)); emp2.displayDetail(); out.println(emp2.raiseSalary(1.1)); } } Employee's name :Chan Tai Man, salary :1200012600.0 Employee's name :Tam Ping Shing, salary :1350014850.000000000002
  7. To distribute windows OS lincense to each computer and different student can login in their account no matter which computer.
  8. I can't download old verison?what kind of software do i use to download centos ISO?which file name should i look up?
  9. how do i permit to select twp campus?how do i clear the Name using reset function? here's my code: <html> <head></head> <body> <h1>IVE</h1> <img src="logo.gif"/> <p> <ul><li>Home</li></ul> <ul><li><a href="#">Contact Us</a></li></ul> </p> <p> Name:<input type="text" /> </p> <form> <p> Selection Dapartment: <input type="radio" name="ans" value="I"/>IT <input type="radio" name="ans" value="D"/>Design </p> <p> Name <select> <option>1</option> <option>2</option> <option>3</option> </select> </p> <p> Select two Campus: <input type="checkbox" checked="checked"/>Chai Wan <input type="checkbox"/>Tsing Yi <input type="checkbox"/>Lee Wai Lee </p> <input type="submit" value="Submit"/> <input type="reset" value="Clear"/> </form> </body> </html>
  10. buklu

    how do i send a jpg to apple ii?

    is it super geek?
  11. buklu

    eclipse simple question

    no freaking solder here?