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 Introducing IntelliJ and Unpacking Packages Introducing IntelliJ and Unpacking Packages Introducing IntelliJ and Unpacking Packages

how to write import statement

don't you copy the package address first and then "."+...?

1 Answer

  • examples of java import statements below *

import java.util.*; or import java.util.math;

/ After this step you will be calling the class/ class Whatever {

/Here you will be creating globale variables/

/ After this you will be creating the main thing / public static void main printf[]{ /Here you'll do you're System calls. System.out.println("Hello to you"); } / After this there will be a closing bracket. }