Introduction to Java- Lesson 9: Math %


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-java/lessons/introduction-to-java/exercises/math-2?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>
Hello to everyone, i’m stuck in this lesson and I don’t know why.
I should write two numbers with a remainder of 2, so there’s my code below.
Where am I wrong? Help me pleasee

```

int myRemainder = 12 % 5;

<do not remove the three backticks above>

#2

Are you getting an error about insufficient memory, by any chance? If you are, then it’s not your code that’s the problem (it looks fine), there seems to be an issue for most (if not all) people doing java right now.


#3

I did a simple 12 % 10, which when running locally in the command line works fine, but not in the course, so i suspect there are issues elsewhere.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.