This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#176 2012-03-12 20:32:33

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Official Topic

16Skittles wrote:

Harakou wrote:

16Skittles wrote:


This. The thing I was honestly most intimidated by was brackets. I never watched a tutorial and I was like "wow I've never used those, those look scary" until I watched Java tutorials and realized it was just like how when you open a <html> tag you must close it with a </html> tag.

The funny thing is that those always confused me too. In fact, here's an old post by me expressing my frustration at them.

(I'm now reading through that thread. Oh the memories...)

Lol, don't you just love looking back at the times when (as Wickimen put it) you were a young noob?  tongue

It's very enjoyable yes. It makes me miss some of the regulars that have since left or otherwise stopped being active.

(Ack! Off-topic! Abort, abort!)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#177 2012-03-12 21:26:00

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

Hello,

I just now started to program java with net beans i thin ill keep tabs on this project for guiding me in this persuit ill refer here whenever i need help.(soo...a lot)

EDIT: im learning off of the java tutorials here

Last edited by slayerrobe7 (2012-03-12 21:27:47)


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#178 2012-03-12 21:51:04

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Java Official Topic

Eclipse or NB?  hmm


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#179 2012-03-12 21:55:09

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

net beans i would get eclipse but i fear using two would be very confusing and i like netbeans


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#180 2012-03-12 22:28:50

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

can someone link me to a better tutorial website or give me the name of a good book


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#181 2012-03-12 22:48:24

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Java Official Topic

I recommend TheNewBoston on YouTube.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#182 2012-03-12 22:59:10

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Java Official Topic

slayerrobe7 wrote:

net beans i would get eclipse but i fear using two would be very confusing and i like netbeans

I've heard eclipse is better though  hmm


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#183 2012-03-12 23:26:58

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

maby ill get eclipse and cheak it out since im not to far in and the language should be the same


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#184 2012-03-12 23:32:39

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

nevermind after looking at the screen shots i dont evan like the layout of it


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#185 2012-03-13 00:24:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Official Topic

jji7skyline wrote:

slayerrobe7 wrote:

net beans i would get eclipse but i fear using two would be very confusing and i like netbeans

I've heard eclipse is better though  hmm

At least on a basic level, Eclipse and NetBeans aren't that different, really. Their layouts are very similar.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#186 2012-03-13 02:22:18

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

bump


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#187 2012-03-13 10:26:23

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Java Official Topic

Harakou wrote:

turkey3 wrote:

Why can't other languages be made simple like scratch? Scratch is colorful and simply laid out nicely wih easy to learn scripts. I've looked at other languages an Im like, where's the scripts? It's all complex, so fr now I'm sticking wih scratch

Other languages are more complex because while Scratch is simple to get into and very useful for your first foray into programming, it's hardly suitable for more powerful coding.

A big reason for this is that other languages have far more extensive libraries than Scratch, and having to have a block for every single one would make using it effectively impossible. This, for example, is the Java 6 SE API. That's a huge library.

There are other issues too. Consider that programs can easily consist of thousands of lines of code and you can see just how difficult it would be to work with that in block form.

Let's not forget, also, that blocks are just an abstraction on top of text. Ultimately, every language does simplify things for the sake of usability, (believe it or not, languages like Java and C++ are made to make things easier for programmers) but these changes are intended to make coding more efficient by providing powerful ways of writing instructions - otherwise we would still be flipping switches to define memory addresses to access, and I don't think anyone wants that.  tongue

I understand that I'm sort of focusing on the block aspect here and not totally addressing your entire question, but the point is that simplicity and accessibility are good to start off with, but they're like training wheels on a bike: eventually you need to take them off because they become limiting rather than helpful.

And yes, other languages can be intimidating, but anything that you don't understand can be. You're not going to know everything at once, so it's important to slowly learn the basics and add onto that knowledge as you go. Once you start learning how to use it, it stops seeming so convoluted. Trust me, I remember being baffled by languages as simple as BASIC; I just didn't know where to start. You just need to take the time to learn it.  smile

Very well said.

Offline

 

#188 2012-03-13 12:50:40

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

hmm im on internet bandwith so i need text tutorials any ideas

also I learn better from reading


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#189 2012-03-13 13:55:33

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Java Official Topic

slayerrobe7 wrote:

hmm im on internet bandwith so i need text tutorials any ideas

also I learn better from reading

I suggest Java in 24 Hours by Rogers Cadenhead. It's well written and takes it slowly instead of trying to teach you functions in the first chapter.  smile


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#190 2012-03-13 14:07:21

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Java Official Topic

poopo wrote:

slayerrobe7 wrote:

hmm im on internet bandwith so i need text tutorials any ideas

also I learn better from reading

I suggest Java in 24 Hours by Rogers Cadenhead. It's well written and takes it slowly instead of trying to teach you functions in the first chapter.  smile

I love that book.
I just took it back to the library and was so sad. xD

Offline

 

#191 2012-03-13 14:36:48

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Java Official Topic

ProgrammingFreak wrote:

poopo wrote:

slayerrobe7 wrote:

hmm im on internet bandwith so i need text tutorials any ideas

also I learn better from reading

I suggest Java in 24 Hours by Rogers Cadenhead. It's well written and takes it slowly instead of trying to teach you functions in the first chapter.  smile

I love that book.
I just took it back to the library and was so sad. xD

I'm lucky enough to own it.  big_smile  A lot of the programming book writers try and fail to be funny but he actually succeds.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#192 2012-03-13 14:40:30

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Java Official Topic

poopo wrote:

ProgrammingFreak wrote:

poopo wrote:


I suggest Java in 24 Hours by Rogers Cadenhead. It's well written and takes it slowly instead of trying to teach you functions in the first chapter.  smile

I love that book.
I just took it back to the library and was so sad. xD

I'm lucky enough to own it.  big_smile  A lot of the programming book writers try and fail to be funny but he actually succeds.

Agreed. Most times its reallllyyy lame. :I

Offline

 

#193 2012-03-13 14:41:43

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Java Official Topic

ProgrammingFreak wrote:

poopo wrote:

ProgrammingFreak wrote:

I love that book.
I just took it back to the library and was so sad. xD

I'm lucky enough to own it.  big_smile  A lot of the programming book writers try and fail to be funny but he actually succeds.

Agreed. Most times its reallllyyy lame. :I

More like rrrrrrrrrrrrrrrrrrreeeeeeeeeeeeeeeeeeeeeeeeaaaaaaaaaaaaaaaaaaaaaallllllllllllllllllllllllllllllllllyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy lame.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#194 2012-03-13 16:14:04

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Java Official Topic

TRocket decided that he and hopefully more people would try and rebuild scratch in Java so far our group includes:
Myself
TRocket


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#195 2012-03-16 16:04:12

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

I might start developing a game or something in Java.

Offline

 

#196 2012-03-16 16:14:22

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Java Official Topic

slayerrobe7 wrote:

TRocket decided that he and hopefully more people would try and rebuild scratch in Java so far our group includes:
Myself
TRocket

I'll help you.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#197 2012-03-17 20:11:43

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Java Official Topic

I'll contribute some to JScratch, or whatever, too.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#198 2012-03-22 19:10:33

matthew8092001
Scratcher
Registered: 2010-09-12
Posts: 100+

Re: Java Official Topic

Anyway, so I'm trying to order three numbers, and I have the maximum and minimum down. But I can't seem to figure out how to transmit the remaining number to the variable "middle". I know this is a noob question, and that the middle number can automatically be deduced but Scratch always solves my problems so I come here xD

The code:

Code:

import java.util.*;
public class Ordering {


    //Scans for user inputs of a, b, and c
    public static void main(String[] args) {
        System.out.println("Please enter a:");
        Scanner avalue = new Scanner (System.in);
        int a = avalue.nextInt();
        System.out.println("Please enter b:");
        Scanner bvalue = new Scanner (System.in);
        int b = bvalue.nextInt();
        System.out.println("Please enter c:");
        Scanner cvalue = new Scanner (System.in);
        int c = cvalue.nextInt();
        int max = a;
        int min = c;
        int middle = b;
        //Determine the maximum
        if (max < b){
            max = b;
        }
        else 
        {
            if (max < c){
                max = c;
            }
        }
        //Determine the minimum
        if (min > b){
            min = b;
        }
        else 
        {
            if (min < a){
                min = a;
            }
        }
        
        //This is where I'm supposed to determine the middle value, but I'm not sure how.
        
        
        System.out.println(min+", "+b+", "+max);
        
        
    }

}

http://1.bp.blogspot.com/_GVA115I1I8Y/TMGwbJ056kI/AAAAAAAABHs/kpvg0oCKV2g/s1600/happy.gif
lol

Offline

 

#199 2012-03-23 06:22:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Java Official Topic

I don't really know Java, but couldn't you put all three numbers into an array, then sort that?

Offline

 

#200 2012-03-23 07:42:23

matthew8092001
Scratcher
Registered: 2010-09-12
Posts: 100+

Re: Java Official Topic

Yes, you could, but I'd like to continue using the hassle "if, else" method.


http://1.bp.blogspot.com/_GVA115I1I8Y/TMGwbJ056kI/AAAAAAAABHs/kpvg0oCKV2g/s1600/happy.gif
lol

Offline

 

Board footer