|
Thread Rating: 15 votes, 4.47 average. Rate: - Thread Rating: 15 votes, 4.47 average. Rate:
- 1
- 2
- 3
- 4
- 5
SINGAPORE THREAD VER.2, SINGAPOREAN GATHER HERE
skyangel91 |
|
I am a S8 rename noob.
         
Group: Advanced Members
Posts: 3,503
Member No.: 784
Joined: Sep 4th 2007
Location: Singapore

|
@sebas, yes. zzzzzzzzzzzzzzzzzz public class MyCalculator { private String name; public MyCalculator() { name = null; } public MyCalculator(String n) { name = n; } public int add(int a, int  { return a+b; } public int multiply(int a, int  { return a*b; } public double add(double a, double  { return (a+  ; } public float multiply(float a, float  { return (float)(a*  ; } public void showManual() { System.out.println("This is the manual for MyCalculator: " + name); System.out.println("It can perform the following functions: "); System.out.println("-addition of 2 intergers"); System.out.println("-multiplication of 2 integers"); } } [ Post merged on May 11 2009, 07:41 PM ] import java.util*; scanner public class TestCalculator { public static void main(String[] args) { MyCalculator c1 = new MyCalculator(); Scanner sc = new Scanner(System.in); int i = sc.nextInt(); int j = sc.nextInt(); } } lawl stuck liao zzzz
|
|
|
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|
|