User Profile
Collapse
-
Thanks for the help really appreciate it. -
2 variables in 1 "if" (new to java)
so the program wants me to output the a word based on what the punctuation the user used to end the sentence.
This is what i have so far, i know its really bad...
...Code:public class punctuation { public static void main(String[] args) { int sentence, length, even=%2, odd=%1; char question=?, exclamation=!, other=.; System.out.println("Enter a sentence.");
No activity results to display
Show More
Leave a comment: