You are to choose between two procedures, both of which compute the mini-mum value in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alhisnawy
    New Member
    • Feb 2010
    • 4

    You are to choose between two procedures, both of which compute the mini-mum value in

    another questions:
    Q1)--------------------------------------------------
    Consider the following code:
    Int [ ] a = [1, 2, 3];
    Object o ="123";
    String t = "12";
    String w = t + "3";
    Boolean b = o.equals (a);
    Boolean b2 = o.equals (t);
    Boolean b3 = o.equals (w);
    Boolean b4 = (o == w);
    Show the effect of executing this code by means of a diagram similar to that in Figure 2.2. Also explain how the code arrived at the results in b, bl, b2, and b3.
    the figure as in the picture 21.jpg
    -------------------------------------------------------------------------------------------------------------------
  • pbrockway2
    Recognized Expert New Member
    • Nov 2007
    • 151

    #2
    As it is this post doesn't even have the beginnings of a question.

    Read this forum's posting guidelines. But, mostly, ask a question. If you don't understand the diagram you posted, what is it that you don't understand? If you have made your own attempt, what is that and can you think of any way to check it?

    Comment

    Working...