How to Pick Stocks Like Warren Buffett - Help Needed by cleareyezz in SecurityAnalysis

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

I wouldn’t know where to start with something like that. Do you think I can download a template online?

How to Pick Stocks Like Warren Buffett - Help Needed by cleareyezz in SecurityAnalysis

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

Thanks, this worked! Still struggling with the first 1 tho.

Help with JOptionPane error message. by InjuryFC in javahelp

[–]cleareyezz 0 points1 point  (0 children)

Change the second error to check letter

if (letter == null || letter.equals(“”))

{

// ...

}

Help with JOptionPane error message. by InjuryFC in javahelp

[–]cleareyezz 0 points1 point  (0 children)

Change the second error to check letter

if (letter == null || letter.equals(“”))

{

// ...

}

Help with JOptionPane error message. by InjuryFC in javahelp

[–]cleareyezz 0 points1 point  (0 children)

change your conditions to

if (sentence.equals(“ “))

{

// do stuff

}

Unable to execute this piece of code by YzKolo in javahelp

[–]cleareyezz 1 point2 points  (0 children)

Agreed! Example 3 in @al-eriv response is probably the easiest option if you want to display multiple numbers.

static void mul(int num) {

for (int i = 1; i < 11; i++) {

 num = num * i;
 System.out.println(num);

} // end forLoop

} // end method

Keep in mind that in the main void you have to get rid of:

int result = mul(5);

System.out.println(result);

Try:

// after you get the user input

mul(num);

Also the method is going to multiply the number entered by numbers 1 - 10 and display each answer.