Why is it returning address instead of object?

Pranjal
Comparator<Employee> comparator =Comparator.comparing(Employee::getIncome);
Employee minObj= Employee.persons().stream()
                       .min(comparator)
                       .get();

This is returning me address instead of an object.

toMap.Employee@66133adc

What is the problem and how to write it correctly?

Behrang

It probably isn't—you have forgotten to override toString().

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Python returning Hexadecimal address instead of object

From Dev

Why is my code returning the address of the variable instead of the value? (Python)

From Dev

Why is this factory returning a $$state object instead of response.data?

From Dev

Why json.loads is returning a unicode object instead of string

From Dev

Why is my document.querySelector() returning a [object HTMLDivElement] instead of the value?

From Dev

Returning Future<Object> instead of Object

From Dev

Returning Array contents instead of memory address

From Dev

Promise returning a function instead of an object

From Dev

Laravel returning "Object" instead of Array?

From Dev

Console returning [Object object] instead of object members

From Dev

Why is it returning NaN instead of 7?

From PHP

Returning a object gets true instead of beeing an object

From Dev

Problem with Python returning a NoneType object instead of the Object

From Java

Spring MVC + Thymeleaf: Why is the view returning a new object to controller instead of the original one?

From Dev

Why is alloca returning the same address twice?

From Dev

why is my object returning undefined?

From Java

Why is hibernate returning a proxy object?

From Dev

Why does returning this result in an object?

From Dev

Why this script is returning ' 'null' is not an object'?

From Java

Thymeleaf returning a String array instead of List<Object>

From Javascript

javascript push returning number instead of object

From Dev

jwplayer returning function instead of player object

From Python

Django HttpResponse returning object instead of stated string

From Dev

Linq select returning string instead of object

From Dev

NGRX 8 reducer returning Object instead of Array

From Dev

simple string split is returning object instead array

From Dev

Creating constructors using "this" instead of simply returning an object

From Dev

Laravel getCountForPagination() returning Object instead of int

From Dev

React.CloneElement returning an object instead of function

Related Related

  1. 1

    Python returning Hexadecimal address instead of object

  2. 2

    Why is my code returning the address of the variable instead of the value? (Python)

  3. 3

    Why is this factory returning a $$state object instead of response.data?

  4. 4

    Why json.loads is returning a unicode object instead of string

  5. 5

    Why is my document.querySelector() returning a [object HTMLDivElement] instead of the value?

  6. 6

    Returning Future<Object> instead of Object

  7. 7

    Returning Array contents instead of memory address

  8. 8

    Promise returning a function instead of an object

  9. 9

    Laravel returning "Object" instead of Array?

  10. 10

    Console returning [Object object] instead of object members

  11. 11

    Why is it returning NaN instead of 7?

  12. 12

    Returning a object gets true instead of beeing an object

  13. 13

    Problem with Python returning a NoneType object instead of the Object

  14. 14

    Spring MVC + Thymeleaf: Why is the view returning a new object to controller instead of the original one?

  15. 15

    Why is alloca returning the same address twice?

  16. 16

    why is my object returning undefined?

  17. 17

    Why is hibernate returning a proxy object?

  18. 18

    Why does returning this result in an object?

  19. 19

    Why this script is returning ' 'null' is not an object'?

  20. 20

    Thymeleaf returning a String array instead of List<Object>

  21. 21

    javascript push returning number instead of object

  22. 22

    jwplayer returning function instead of player object

  23. 23

    Django HttpResponse returning object instead of stated string

  24. 24

    Linq select returning string instead of object

  25. 25

    NGRX 8 reducer returning Object instead of Array

  26. 26

    simple string split is returning object instead array

  27. 27

    Creating constructors using "this" instead of simply returning an object

  28. 28

    Laravel getCountForPagination() returning Object instead of int

  29. 29

    React.CloneElement returning an object instead of function

HotTag

Archive