"Hi, buddy. Bilaabo will tell you how this would all look in Pascal."

Pascal
i := 3;
While i >= 0 Do
Begin 
    WriteLn(i);
    i := i - 1;
End;
Java
int i = 3;
while (i >= 0)
{
    System.out.println(i);
    i--;
}
Pascal
i := 0;
While i < 3 Do
Begin 
    WriteLn(i);
    i := i + 1;
End;
Java
int i = 0;
while (i < 3)
{
    System.out.println(i);
    i++;
}
Pascal
isExit := False;
While Not isExit Do
Begin
    ReadLn(s);
    isExit :=  (s = 'exit');
End;
Java
boolean isExit = false;
while (!isExit)
{
    String s = buffer.readLine();
    isExit = s.equals("exit");
}
Pascal
While True Do
    WriteLn('C');
Java
while (true)
    System.out.println('C');
Pascal
While True Do
Begin
    ReadLn(s);
    If  s = 'exit' Then 
        Break;
End;
Java
while (true) 
{
    String s = buffer.readLine();
    if (s.equals("exit")) 
        break;    
}

"This comparison with Pascal might be useful for those who know Pascal."

"You mean you don't? Come on! It's the most popular language on my home planet."

"OK, OK. I believe you that it's cool. And that if I knew it, it would help me."

undefined
4
Task
New Java Syntax, level 4, lesson 9
Locked
How do hard drives work?
Can you believe that modern hard drives hold 300,000,000 times more information than IBM’s first device from 1957? Nowadays they can easily hold more information than any library, and their capacity is still increasing. But how do they store such huge amounts of data? In this TED-Ed video, Kanawat Senanan explains how these powerful tools were created.