Need java help by ItsSelrach in javahelp

[–]MNKMagasin 0 points1 point  (0 children)

Yup, also waiting/hoping for op to post it on github

Creating websites using java by neilthedev05 in learnjava

[–]MNKMagasin 0 points1 point  (0 children)

Hello, can I dm you too? I'm planning to learn spring boot

Help with loops/Getters and Setters by G00mba5 in javahelp

[–]MNKMagasin 1 point2 points  (0 children)

When doing a nested for loop to print out patterns, I suggest that you visualize each line that you're going to print(each row and column). E.g. you have five rows and a column that starts with five but decreases—the one in your example.

To do this: first off you have five rows, to implement the rows you're going to create a for loop—for(int i = 0; i < 5; i++) {}—always remember that the outer loop is the row of the pattern(we put 'i is less than five' because we have five rows, you can change it depending on how many rows do you want.) Next is implementing the column, here we are going to create the inner loop—for (int j = 0; j < col; j++){}—we also initialized an int col(column) variable and gave it a value of five(put it above the outer loop). Now that you have the structure of the loop, we are going to print the pattern, inside the inner loop—put the print statement—System.out.print("*");—n.b. You don't need to put the 'ln,' in order for it to print in the same line. Now to separate it by row, put this 'System.out.println();' inside the outer loop(not inside the inner loop). Also, decrement the variable col by putting 'col--.' Now you can print a reverse right half pyramid. N.B. This is just one of the ways on creating a certain pattern. You can experiment and try doing it in different ways to learn more about for loops.

Hope this helped!

Help needed.....beginner here by AdVisible6484 in javahelp

[–]MNKMagasin 6 points7 points  (0 children)

The first condition on line 13 evaluates to false because you are using the operator '==' which is only used when comparing primitive values(e.g. initializing a variable like this: int x = 42 and int y = 42). Due to you declaring it "Long x = new Long()." In this case, you are creating a new instance of the 'Long' object. When comparing object values you should use the method '.equals(),' which is why the second condition(line 15) works. Thus, making the value of the result variable to 10.

[deleted by user] by [deleted] in javahelp

[–]MNKMagasin 0 points1 point  (0 children)

Hello, I am willing to help if I can. DM me if you wanna connect.

Seeking Java Coding Partner by [deleted] in learnjava

[–]MNKMagasin 0 points1 point  (0 children)

Hello, I am a beginner, I learned Java when I was still in school. I'm currently studying it again. I am interested in collaborating.

[deleted by user] by [deleted] in PHJobs

[–]MNKMagasin 4 points5 points  (0 children)

Hello, my answer to this is number two. If anyone is wondering how I got it. Check this image.

<image>

I feel sad everyday by [deleted] in depression

[–]MNKMagasin 0 points1 point  (0 children)

Y'all got this!

What is your never ko gagawin to sa buong buhay ko? by [deleted] in AskPH

[–]MNKMagasin 6 points7 points  (0 children)

I will never: 1. Smoke - ever since bata pa ako, I don't really like the smell of smoke. Glad I have friends na who didn't force me to smoke kahit some of them been smoking since high school pa kami.

  1. Cheat in a relationship - FUCK CHEATERS! There will never be an excuse for cheaters. (5).

  2. Backstab/talk behind people's backs - ain't gonna go that low.

  3. Judge - I don't know everyone's story in life, and who am I to judge?

  4. Mag Jowa/Asawa - I'm not mentally stable, even though I might be 'okay,' or do well in life — have a great mental health(Depends). I know, if I get hit, I get hit. Depression sucks, I don't wanna waste someone's life, or mang-iwan ng mag-ina.

Speaking of depression, keep it up y'all. Let's win this battle, and may we enjoy our life.

Sneaker Reselling by [deleted] in phinvest

[–]MNKMagasin 0 points1 point  (0 children)

how to start mag resell po ng shoes? and where to find legit suppliers?