Please help. package com.javarush.test.level04.lesson02.task01;

/ Implement method setName() Implement the setName method, so the value of the private String name variable would be equal to the passed String name parameter. /

public class Cat { private String name;

public void setName(String name) {
    //add your code here
}

}

asked 04 Jul, 05:54

blacklight's gravatar image

blacklight
11
accept rate: 0%


passed

public class Cat {
    private String name;

public void setName(String name)
{
    this.name = name;

}

}

link

answered 07 Jul, 02:25

blacklight's gravatar image

blacklight
11
accept rate: 0%

edited 07 Jul, 02:25

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5

Asked: 04 Jul, 05:54

Seen: 697 times

Last updated: 07 Jul, 02:25