User Profile

Collapse

Profile Sidebar

Collapse
brodyvon
brodyvon
Last Activity: Sep 7 '10, 03:55 AM
Joined: Sep 7 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • brodyvon
    replied to 2 variables in 1 "if" (new to java)
    in Java
    Thanks for the help really appreciate it.
    See more | Go to post

    Leave a comment:


  • brodyvon
    started a topic 2 variables in 1 "if" (new to java)
    in Java

    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.");
    ...
    See more | Go to post
    Last edited by Nepomuk; Sep 8 '10, 10:22 AM. Reason: Please use [CODE] tags
No activity results to display
Show More
Working...