Footy
2012-08-10 11:00:48
~Footy
2012-08-10 11:00:48
2012-08-10 11:20:03
2012-08-10 11:24:50
2012-08-10 11:28:01
2012-08-10 11:30:25
2012-08-10 11:31:26
2012-08-10 11:39:38
2012-08-10 11:47:04
2012-08-10 11:49:05
2012-08-10 11:50:09
2012-08-10 12:11:56
2012-08-10 12:34:03
2012-08-10 12:52:02
From: Footy
Aight, I'll try that link ucantseeme gave me, thanks!
2012-08-10 12:52:11
2012-08-10 12:54:43
From: Footy
I got lost at this, I know it prints something like writeln's, but what's all the other stuff?
class A {
*public static void main(String args[]){
*****System.out.println(“First Java Program”);
*}
}
2012-08-10 13:26:16
2012-08-10 13:30:33
2012-08-10 13:57:30
From: Footy
Hmm, so I'd I'm understanding right, a class in kind of like a procedure? It's this bit that I don't understand.
class A {
*public static void main(String args[]){
*
class Pizza {
public void BakePizza(){
//code here...
}
public void EatPizza(){
//code here...
}
}
Pizza myDeliciousPizza = new Pizza(); //new allocate the memory to create a new instance
myDeliciousPizza.BakePizza(); //We call the methods (a method is a function/procedure)
myDeliciousPizza.EatPizza();2012-08-10 14:04:24
2012-08-10 14:31:54
From: Footy
Wow, I am soo confused. How come pascal came so easily? I guess I'll just read some more tutorials.
2012-08-10 14:55:51
2012-08-10 14:57:27
From: NKN
Get the book: Heads first into Java.
It's really easy to follow and understand. :)
2012-08-10 15:00:14
2012-08-10 15:05:24
class tv{
public int width; // var width of the type integer;
public int height; // var height of the type integer;
public String GetShow(String channel) //function GetShow(channel:String): String;
{ //begin
return 'your show in ' + width + ' by ' + height + ' pixels';
//Result := 'Your show in ' + IntToStr(width) + ' by ' + 'pixels';
}
}
class livingRoom{
public tv OurSamsungTV; //here you can see our 'class' we just created
public void WatchTv //procedure watchTV
{ //begin
OurSamsungTV.width = 1024;
OurSamsungTV.height = 768;
System.out.println( GetShow('Discovery channel') );
}
}
2012-08-10 15:14:17
2012-08-10 15:37:10
From: masterBB
class livingRoom{
public tv OurSamsungTV //here you can see our 'class' we just created
public void WatchTv //procedure watchTV
{ //begin
OurSamsungTV.width = 1024;
OurSamsungTV.height = 768;
System.out.println( GetShow('Discovery channel') );
}
}
class livingRoom{
public tv OurSamsungTV = new tv(); //here you can see our 'class' we just created
public void WatchTv //procedure watchTV
{ //begin
OurSamsungTV.width = 1024;
OurSamsungTV.height = 768;
System.out.println(OurSamsungTV.GetShow('Discovery channel') );
}
}
2012-08-10 15:49:11
From: eska
Shouldn't it be:
2012-08-10 16:14:46
2012-08-10 16:15:50
From: R4nd0m
ANY programming language is great start and will help you dramatically in learning future languages.
+++++++++++>+>>>>++++++++++++++++++++++++++++++++++++++++++++
>++++++++++++++++++++++++++++++++<<<<<<[>[>>>>>>+>
+<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<[>++++++++++[-
<-[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]>[<<[>>>+<<<
-]>>[-]]<<]>>>[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]
>[<<+>>[-]]<<<<<<<]>>>>>[+++++++++++++++++++++++++
+++++++++++++++++++++++.[-]]++++++++++<[->-<]>++++
++++++++++++++++++++++++++++++++++++++++++++.[-]<<
<<<<<<<<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<-[>>.>.<<<
[-]]<<[>>+>+<<<-]>>>[<<<+>>>-]<<[<+>-]>[<+>-]<<<-]
2012-08-10 16:23:57
2012-08-10 16:25:33
From: superuser
With the exception of Brainfuck. :)
For example, to calculate the first 100 numbers of the Fibonacci sequence:+++++++++++>+>>>>++++++++++++++++++++++++++++++++++++++++++++
>++++++++++++++++++++++++++++++++<<<<<<[>[>>>>>>+>
+<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<[>++++++++++[-
<-[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]>[<<[>>>+<<<
-]>>[-]]<<]>>>[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]
>[<<+>>[-]]<<<<<<<]>>>>>[+++++++++++++++++++++++++
+++++++++++++++++++++++.[-]]++++++++++<[->-<]>++++
++++++++++++++++++++++++++++++++++++++++++++.[-]<<
<<<<<<<<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<-[>>.>.<<<
[-]]<<[>>+>+<<<-]>>>[<<<+>>>-]<<[<+>-]>[<+>-]<<<-]
00110001 00101100 00100000 00110001 00101100 00100000 00110010 00101100 00100000 00110011 00101100 00100000 00110101 00101100 00100000 00111000 00101100 00100000 00110001 00110011 00101100 00100000 00110010 00110001 00101100 00100000 00110011 00110100 00101100 00100000 00110101 00110101 00101100 00100000 00111000 00111001 00101100
2012-08-10 16:27:38
2012-08-10 16:32:35
From: Killerdou
fortran is worse than brainfuck…
2012-08-10 16:34:46
From: superuser
With the exception of Brainfuck. :)
For example, to calculate the first 100 numbers of the Fibonacci sequence:+++++++++++>+>>>>++++++++++++++++++++++++++++++++++++++++++++
>++++++++++++++++++++++++++++++++<<<<<<[>[>>>>>>+>
+<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<[>++++++++++[-
<-[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]>[<<[>>>+<<<
-]>>[-]]<<]>>>[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]
>[<<+>>[-]]<<<<<<<]>>>>>[+++++++++++++++++++++++++
+++++++++++++++++++++++.[-]]++++++++++<[->-<]>++++
++++++++++++++++++++++++++++++++++++++++++++.[-]<<
<<<<<<<<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<-[>>.>.<<<
[-]]<<[>>+>+<<<-]>>>[<<<+>>>-]<<[<+>-]>[<+>-]<<<-]
2012-08-10 16:39:17
From: Footy
think ill pass on that one…
2012-08-10 21:12:04
Class Writestuff {
public static void main (string[] args) {
int Burgercookedlevel = 0
while burgercookedlevel < 100 {
system.out.println("Burger still cooking! The burger is currently " + BurgerCookedLevel + "Percent finished!");
BurgerCookedLevel = BurgerCookedLevel + 10
}
system.out.println("Burger finished cooking!");
}
}
2012-08-10 21:21:14
From: Footy
Thanks so much NKN! The book you reccomended is incredibly easy to follow, and I feel like I've learned so much already! This is my first application, not sure if it compiles, I dont have a compiler on my phone…
Class Writestuff {
public static void main (string[] args) {
int Burgercookedlevel = 0
while burgercookedlevel < 100 {
system.out.println("Burger still cooking! The burger is currently " + BurgerCookedLevel + "Percent finished!");
BurgerCookedLevel = BurgerCookedLevel + 10
}
system.out.println("Burger finished cooking!");
}
Class Writestuff {
public static void main (string[] args) {
int Burgercookedlevel = 0; //Pesky semi-colon
while (burgercookedlevel < 100) { //pretty sure you need ( ) for the condition, might be wrong but
// it's good standard anyway.
system.out.println("Burger still cooking! The burger is currently " + BurgerCookedLevel + "Percent finished!");
BurgerCookedLevel = BurgerCookedLevel + 10; //Pesky semi-colon, also I think you could use
// the '+=' operator here, it's optional though.
}
system.out.println("Burger finished cooking!");
}
}
2012-08-10 21:23:08
2012-08-10 21:28:51
From: Footy
Whoops, semi colons on almost everything just like pascal! what is the += operator?
i= 1;
++i;
or
i++;
i= 5;
system.out.println(++i); //This will print '6'.
system.out.println(i); // This will print '6'.
i=5; //lets put back 5 in there to keep it simple.
system.out.println(i++); // This will print 5! Not 6!.
system.out.println(i); // This will print 6.
2012-08-10 21:31:09
2012-08-13 13:37:44
writeln('Hello, World!');
Writeln('Hello, World!');
WriteLn('Hello, World!');System.out.println("Hello, World!");system.out.println("Hello, World!");public class System {
public static PrintStream out;
}
2012-08-13 20:29:44
2012-08-23 22:29:33
From: eska
But above all you must learn lolcode. It is indispensable in today's market.
http://en.wikipedia.org/wiki/LOLCODE
2012-08-23 23:07:30
2012-08-23 23:24:51
2012-08-24 01:07:19
From: Joe
Java is hard to learn. Start with C++
2012-08-24 02:19:29
From: Joe
Java is hard to learn. Start with C++
2012-08-24 08:42:45
From: Joe
Java is hard to learn. Start with C++
2012-08-25 10:52:57