Hello Guest, Welcome to Open Discussion Forums! Take a few moments to browse our forum and discover why you should register, it takes less than 2 minutes to create an account, sign in and start posting.

My first code

User avatar

Author
Admin
Site Admin
Senior Expert Member
Reactions: 12
Posts: 220
Joined: 4 years ago
Topics: 194
Contact:

Re: My first code

#1

Unread postby Admin 1 month ago

  1. public static void go()
  2. {   Rectangle r1 = new Rectangle(0,0,5,5);
  3. System.out.println("In method go. r1 " + r1);
  4. r1.setSize(10, 15);
  5. System.out.println("In method go. r1 " + r1);
  6. alterPointee(r1);
  7. System.out.println("In method go. r1 " + r1);
  8. alterPointer(r1);
  9. System.out.println("In method go. r1 " + r1 );
  10. }
1
1 Image



Tags:

Return to “Software Engineering”

Who is online

Users browsing this forum: No registered users and 0 guests