Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Introduction to Your Tools

How can I send a snapshot for discussion purposes

I want to sent you a code but failing to attach it to the question

[MOD: adding code block below - srh]

public int getNumber() {
  return mNumber;
}

1 Answer

Hi there,

If you copy & paste your code into here, it'll work to some extent. For better results, have a look at the cheatsheet in the link below your text area. Essentially, add three backticks before and after your code block:

public int getNumber() {
  return mNumber;
}

I'll add that into your question so you can click 'Edit question' and see how it works.

Steve.