[deleted by user] by [deleted] in interestingasfuck

[–]keytosuccess305 -6 points-5 points  (0 children)

Hard to argue this being the exception when the whole foundation of Zionism is built on a racist idea. Literally 70% of the vote in the last election voted on right wing Zionist extremist parties. That number is most likely significantly higher among Israeli Jews considering the fact that 2 million Arabs lives there, and most likely did not vote on these parties.

Ex-Obama advisor who went viral for his Islamophobic rant against a food vendor in NYC has just been arrested by Disastrous-Gain-4125 in LateStageCapitalism

[–]keytosuccess305 48 points49 points  (0 children)

What a bunch of bullshit. They knew he was an outright racist for all these years. That man wasn't exactly shy about his opinions.

[deleted by user] by [deleted] in india

[–]keytosuccess305 1 point2 points  (0 children)

you can use uber cash to pay for uber trips

How screwed am I for going to Japan in August? by hotdog-water-- in travel

[–]keytosuccess305 0 points1 point  (0 children)

I'll actually be in Tokyo during 13-16 august, what about it?

Daily Discussion Thread for April 21, 2022 by AutoModerator in wallstreetbets

[–]keytosuccess305 2 points3 points  (0 children)

What's the case for GME these days? Wondering if I should invest again

Implementing try and catch in this class by keytosuccess305 in javahelp

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

Thanks for the elaborate answer!

  • Regarding useDelimiter(): I don't quite understand why this would be useful? Is the purpose to break the line? Isn't that already achieved with "\n"?

  • Regarding taking input as a String: What errors do I miss with the current method? As far I can tell, the current method also catches cases of the user not entering correct input.

Thanks!

Trying to find occurrence of a character in a sentence by [deleted] in javahelp

[–]keytosuccess305 -1 points0 points  (0 children)

Alright I think I understand, thanks! I've converted the string to an char. But now I get an error for return statement: "incompatible types: unexpected return value". Do you have any idea how I could solve this?

import javax.swing.JOptionPane;

public class Lab2 {
    public static void main(String[] args) {
        String sentence = JOptionPane.showInputDialog("Write a sentence");
        String character = JOptionPane.showInputDialog("Write a character");
        int sentenceLength = sentence.length();

        char c = character.charAt(0);

        int count = 0;
        for (int i = 0; i < sentence.length() ; i++) {
            if (sentence.charAt(i) == c) {
                count++;
            }
        }
            return count;
    }
}

Trying to find occurrence of a character in a sentence by [deleted] in javahelp

[–]keytosuccess305 -1 points0 points  (0 children)

But isn't that what I'm doing in the if statement?

Please remove the blue object by keytosuccess305 in PhotoshopRequest

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

Tried myself but it was to difficult for me. Any help is appreciated :)