State tax filing

Thanks MaryK1101,

Just wanted to confirm NJ is based on gross income, NY is based on New York state sourced income?