User Profile

Collapse

Profile Sidebar

Collapse
bryantbe
bryantbe
Last Activity: Oct 23 '13, 03:32 PM
Joined: Oct 23 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • This is what is says NumDaysLeftInYe ar.java:61: error: incompatible types
    if (Year/4){
    ^
    required: boolean
    found: int
    NumDaysLeftInYe ar.java:62: error: bad operand types for binary operator '&&'
    if (Year/ 4 && Year/100)
    ^
    first type: int
    second type: int
    See more | Go to post

    Leave a comment:


  • Using If-Else-If statement but it keeps saying it is an invalid entry

    Code:
    System.out.println("Enter the day of the month. ");
      dayOfMonth = keyboard.nextInt();
       
       System.out.println("Enter the month. ");
      monthName = keyboard.nextLine();
       
       System.out.println("Enter the year. ");
      int Year = keyboard.nextInt();
     
      if (Year/4){
      if (Year/ 4 && Year/100)
       {isItLeapYear=true;}
      else if (Year/4 &&
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 23 '13, 05:31 AM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
No activity results to display
Show More
Working...