java help!
1
Name:
Anonymous
2009-02-05 19:06
class Hello
{
public static void main(String[] args)
{
System.out.printIn("Hello world!");
}
}
Im a noob can someone help me make this work?
2
Name:
Anonymous
2009-02-05 19:07
0/10
3
Name:
Anonymous
2009-02-05 19:09
its my first job in my class and i did it right im positive
4
Name:
Anonymous
2009-02-05 19:25
>>2
DivisioinOfZeroException!!
5
Name:
Anonymous
2009-02-05 19:50
6
Name:
Anonymous
2009-02-05 19:51
7
Name:
Anonymous
2009-02-05 19:58
You know that simplifies to just 0, there's no need to type the "/10" part.
8
Name:
Anonymous
2009-02-05 19:58
Suck your wrong bitch.
9
Name:
Anonymous
2009-02-05 20:22
>>1
class Hello{
public static void Main(){
System.Console.WriteLine("Hello World!");
}
}
10
Name:
Anonymous
2009-02-05 20:50
11
Name:
Anonymous
2009-02-05 22:29
>>9
K&R
{} indentation considered harmful, according to all
ENTERPRISE JAVA BEST PRACTICES CODING GUIDES I've seen.
12
Name:
Anonymous
2009-02-05 23:33
All the more reason to use it,
>>11- kun.
13
Name:
Anonymous
2009-02-06 12:47
class Hello {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
This is clearly the best bracers/indentation style.
14
Name:
Anonymous
2009-02-06 12:52
>>11
>>9 isn't java.
>>13
good job, you doubled the amount of indentation, which more than makes up for any increased readability from putting spaces before the opening braces.
15
Name:
SO EZ CAVEMAN CAN DO IT
2009-02-06 12:52
Hello world!
16
Name:
Anonymous
2009-02-06 18:23
>>14
>>9 isn't java.
are you sure?
i know what you're
trying to do there. but i ask again,
are you sure?
17
Name:
Anonymous
2009-02-06 18:47
>>16
i'm pretty sure
System.Console is a .net thing. java has that
System.out faggotry.
18
Name:
Anonymous
2009-02-06 18:49
19
Name:
Anonymous
2009-02-06 18:57
20
Name:
Anonymous
2009-02-06 19:34
class Hello {
public static void Main() {
System.Console.WriteLine("Hello World!"); } }
21
Name:
Anonymous
2009-02-06 21:50
>>20
is a retired C programmer.
22
Name:
Anonymous
2009-02-06 23:51
main = putStrLn "Hello World!"
23
Name:
Anonymous
2009-02-07 0:48
>>1
System.out.printIn("Hello world!");
printIn("Hello world!");
printIn
In
0/10
24
Name:
Anonymous
2009-02-07 4:23
Hmm, what is the natural logarithm of "Hello world!"?
25
Name:
Anonymous
2009-02-07 4:31
"Hello World!" .
26
Name:
Anonymous
2009-02-07 4:35
>>24
The problem is that his L is an I.
27
Name:
Anonymous
2009-02-07 4:35
>>25
public class Test {
public static void main(String[] args) {
System.out.println(Math.log(("Hello World!").hashCode()));
}
}
Returns NaN.
28
Name:
Anonymous
2009-02-07 4:42
>>26
That's not what I asked
!
29
Name:
>>28
2009-02-07 4:45
Maybe I should stop using my Mona font override GM script, for a second I saw it as "I" then it went back to looking like a "l".
30
Name:
Anonymous
2009-02-07 4:57
Haxxis> log "Hello World!"
<interactive>:1:0:
No instance for (Floating [Char])
arising from a use of `log' at <interactive>:1:0-17
Possible fix: add an instance declaration for (Floating [Char])
In the expression: log "Hello World!"
In the definition of `it': it = log "Hello World!"
31
Name:
Anonymous
2009-02-07 5:31
>>28
Assuming we're using ASCII or a superset thereof, ``
Hello world! '' is 0x48656c6c6f20776f726c6421 (or 22405534230753963835153736737 in base 10). The natural logarithm would be 65.27910550305792.
32
Name:
Anonymous
2009-02-07 5:44
The natural logarithm would be 65.27910550305792.
How do you know that?
33
Name:
Anonymous
2009-02-07 6:35
most efficient C pound version
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}",
'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!');
}
}
34
Name:
Anonymous
2009-02-07 6:39
35
Name:
Anonymous
2009-02-07 6:41
36
Name:
Anonymous
2009-02-07 7:38
37
Name:
Anonymous
2009-02-07 7:43
>>36
# is an octothorpe, get it right
!
38
Name:
Anonymous
2009-02-07 7:50
39
Name:
Anonymous
2009-02-07 7:51
>>38
No, hash is something you smoke.
40
Name:
Anonymous
2009-02-07 7:54
I hashed your mother last night
Newer Posts