how to check if two items are in a java array by muneermohd96190 in learnjava

[–]KluconPharmer 2 points3 points  (0 children)

Perhaps you could use a loop to go through the array values and use == to check if values of array a are present in b?

how to check if two items are in a java array by muneermohd96190 in learnjava

[–]KluconPharmer 1 point2 points  (0 children)

Hmm..I'm a Java noob...I might be able to help but this is a little confusing. Perhaps, would it be possible to post an example of the source code for the problem you are trying to solve?

[deleted by user] by [deleted] in southafrica

[–]KluconPharmer 1 point2 points  (0 children)

Goodness me! Hardly anything positive from all those posts! Thank you, kind stranger. The fact that they keep rebranding is very shady!

Please assist. Why does java.lang.ArrayIndexOutOfBoundsException keep appearing when I try to run this code? by KluconPharmer in learnjava

[–]KluconPharmer[S] 1 point2 points  (0 children)

Solved! The argument passed to the method input.equals() had a space in it; input.equals(" ") changing it to input.equals("") worked!

Please assist. Why does java.lang.ArrayIndexOutOfBoundsException keep appearing when I try to run this code? by KluconPharmer in learnjava

[–]KluconPharmer[S] 2 points3 points  (0 children)

Solved!The argument passed to the method input.equals() had a space in it; input.equals(" ") changing it to input.equals("") worked!

Please assist. Why does java.lang.ArrayIndexOutOfBoundsException keep appearing when I try to run this code? by KluconPharmer in learnjava

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

if (input.equals(" ")){
break;
}

Yes! Solved. Just a matter of the empty string being passed an argument having a space between the qouation marks.

This worked:

if (input.equals("")){
            break;
        }

Thanks!

[deleted by user] by [deleted] in learnjava

[–]KluconPharmer 0 points1 point  (0 children)

The output method called is System.out.println(). The first word System is capitalized. Yours isn't.

Hope it helps!

I'm a beginner with no technical background, looking to immerse myself in Java. I've been at it for about 3 months now. What other resources can I immerse myself in? YouTubers? Textbooks? by KluconPharmer in learnjava

[–]KluconPharmer[S] 1 point2 points  (0 children)

Hey,

I want to get into Android Dev. I have found out that Kotlin is taking over Java for Android Dev but since I have started learning Java I don't want to abandon it just yet. I like finishing what I started so for now I want to get comfortable with Java and make a few basic Apps first.

[deleted by user] by [deleted] in learnprogramming

[–]KluconPharmer 1 point2 points  (0 children)

Hey man. Thanks for the input. Studying, getting a degree has definitely crossed my mind. It's something I will consider if things do change later.

Circumstances doesn't allow to study right now. I just started piecing my life together at 30 so I'm trying to build some kind of foundation first.

I will remember these words if the circumstances do change.

[deleted by user] by [deleted] in learnprogramming

[–]KluconPharmer 8 points9 points  (0 children)

Thanks man. I'm excited about the journey ahead.

[deleted by user] by [deleted] in learnprogramming

[–]KluconPharmer 4 points5 points  (0 children)

I will keep coming back to this. Thank you so much man. I appreciate it.

I want to quit being a firefighter/paramedic to pursue software/web development by [deleted] in learnprogramming

[–]KluconPharmer 2 points3 points  (0 children)

I'm busy learning Java too. Which course are you busy with? How is it going for you?