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 trialLiav Bilya
222 Pointsis it Pure Java?
am i wrong or its not a pure Java?
do you have any tutorial for pure Java?
4 Answers
Jennifer Nordell
Treehouse TeacherHi there! These videos aren't using any sort of framework that I'm aware of. Yes, this is "pure" Java.
Jonathan Grieve
Treehouse Moderator 91,253 PointsWhat is pure Java? A language that is so portable, that can be run on many platforms. You'll be working with Workspaces a fair bit before you start working on the IDE and producing more visual projects. And that's okay. Workspaces and console work are a great way to start out in Java. :-)
Liav Bilya
222 Pointsi mean , i know little bit Java . and i dont understand the Values. System.out.println = console.prinln?
i dont get it. i saw the next videos of the Java Basics and all the basics i know in Java is not equal to this.
am i wrong? i will agree with that.. but tell me "which is the true Java to learn" . i know i need to understand the concept of programming, but i want to understand the "Pure Java" if you know what i mean.
Thanks on the fast answer! :D
Jennifer Nordell
Treehouse TeacherI'm not sure what you learned before. Is it possible that you learned JavaScript? Keep in mind, that Java and JavaScript are two entirely different languages.
Here are some tutorials and documentation on System.out.println
from Oracle (the developer of the Java language).
Take a look here: https://docs.oracle.com/javase/tutorial/essential/io/formatting.html
This is "pure" Java!
Liav Bilya
222 Pointsi know, i learnd from Oracle site so i cam to here to boost my learning.
and than i see at the guide that he teach that print out information cames in other form console.printf // this is the way he shows at the video
while at the Oracle site it come in other way (System.out.println)
and this is only one example of the way the Java Tutorial is.
im looking for Java Tutorial as Oracle way and not looks like this Java compiled or somthing. im surely for 100% that i learnd Java and not Javascript. :(
EXAMPLE: " public static void main(String[] args) {
int sum = 0;
int[] box = new int[100];
Random r = new Random();
for(int i = 0 ; i < box.length ; i++){
box[i] = r.nextInt(100) + 1 ;
System.out.println(box[i]);
sum += box[i];
"
this way of Java i can find in TEAM TREE HOUSE?
Thanks on fast answer :)
Jennifer Nordell
Treehouse TeacherHi! In his code he has this line:
Console console = System.console();
This creates a a variable which contains the System.console
object. What he's doing here is making a sort of "shortcut". So every time you write console.println
it's the same as writing System.console.println
. This is perfectly valid and pure Java. You might not have ever done this in previous tutorials, but it's used to simply save on typing. Please note that you can absolutely use System.console.println
. I'm not sure why you would though, as this saves on so much typing.
Good luck and happy coding!