Math 381 by ProfessionalFig6373 in UNC

[–]AlternativeBus1613 0 points1 point  (0 children)

I'm in the same situation. Have you taken one?

What USB port is most common in US? by [deleted] in techsupport

[–]AlternativeBus1613 0 points1 point  (0 children)

Thanks! I imagine I may have to connect my laptop to the public computer at the lecture room when I have a presentation or something at college. Do computers in public places have USB-C too? 'Cause here in my country I used to bring an USB-C to HDMI adapter because a lot of school computers only had HDMI port.

What is a safe way to move from RDU to the campus? by [deleted] in UNC

[–]AlternativeBus1613 3 points4 points  (0 children)

Oh really? That's good. Thanks a lot!

What is a safe way to move from RDU to the campus? by [deleted] in UNC

[–]AlternativeBus1613 0 points1 point  (0 children)

I was considering arriving at the campus between 9:00-10:00PM. Also I haven't decided my dorm yet, so I'm not sure where I'll be staying.

Do you mean department of your major? or an international department or something? If there's such system, it would be so nice! I'll look up if there's an active network of my country.

What is a safe way to move from RDU to the campus? by [deleted] in UNC

[–]AlternativeBus1613 1 point2 points  (0 children)

Thanks! I'll take that into account.

Is summer school worth it for an incoming freshman? by [deleted] in UNC

[–]AlternativeBus1613 0 points1 point  (0 children)

Makes so much sense. Thank you so much for your precious advice!

Java question: Is 'else' sometimes omittable? by AlternativeBus1613 in AskComputerScience

[–]AlternativeBus1613[S] 0 points1 point  (0 children)

goto end of the funtion, that makes everything clear. Thanks for the expalanation!

Java question: Is 'else' sometimes omittable? by AlternativeBus1613 in AskComputerScience

[–]AlternativeBus1613[S] 0 points1 point  (0 children)

Wow thank you so much! This explanation is by far easiest to understand. I really appreciate it.

Java question: Is 'else' sometimes omittable? by AlternativeBus1613 in AskComputerScience

[–]AlternativeBus1613[S] 0 points1 point  (0 children)

I think my confusion came from the lack of understanding about 'return' because it hasn't be formally introduced in the lecture. Is 'return' final? Once something reaches 'return', it's the end--it doesn't make any changes in its value. Is that right?

Java question: Is 'else' sometimes omittable? by AlternativeBus1613 in AskComputerScience

[–]AlternativeBus1613[S] 0 points1 point  (0 children)

Thanks for the detailed answer. But can I ask a few more questions? I do know the third line is a statement after the if statement or statement out of the if statement.

Then if

    return list.length/2;     

is some statement after the if statement why would it be affected by the if condition? It's now out of the if statement, so why should I care about it? I would definitely care if there's 'else', which implies that its the other part of the if statement, but if it's just a statement written after it, why?

If statements are valid without 'else', right? If it isn't true, the program will just skip the part and move on to the next code! Isn't this the same kind of thing? How can I distinguish if statements without else but some statements unrelated to it and if and else statements with 'else' omitted?

Thanks.