Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~254 People Reached
Favorite Forums
Favorite Tags
java x 4
Member Avatar for feartrich

Basically, this program checks if a word (String s) is a palindrome and prints out "true" if it is and "false" if it isn't. I am currently getting three errors: "unexpected type" at line 17, "incompatible types" at lines 30 and 32. [CODE=java]/** * @(#)palindrome.java * * * @author * …

Member Avatar for kdkanishka
0
67
Member Avatar for feartrich

[code=java] import java.util.*; public class factorial { public static void main(String[]args) { int m,f,n; System.out.println("Factorial Solver"); System.out.println("Enter a number"); Scanner sc = new Scanner(System.in); n = sc.nextInt(); m = 1; f = 1; f = f * m; while (m != n) { m = m + 1; } f …

Member Avatar for nomemory
0
96
Member Avatar for feartrich

This supposed to return the user's BMI. But the output is always 0. Why is that? [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; public class bmi extends JApplet implements ActionListener { JTextField inputLbs, inputInches, displayBmi; public void init() { JLabel labelLbs = new JLabel("Weight (lbs):", SwingConstants.RIGHT); inputLbs = …

Member Avatar for VernonDozier
0
91