Do you know the answer?

Home Forums General Chat Do you know the answer?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2899
    David
    Participant

    class IsVuTalesLeet {
    public static void main(String[] args) {
    String vuTales = “vuTales”;
    String leet = “vuTales”;
    System.out.println(“Is VuTales leet? The answer is: “
    + vuTales.equals(leet) + “.”);
    }
    }

    Is VuTales leet? The answer is: _________.

    true

    #10930
    Nass
    Participant

    False.

    You’re trying to trick us.

    #10933
    FunnyFroggy
    Participant

    VuTales is NOT ‘leet’.

    /|_|74|_35 is ‘leet’.

    Therfore, y0u p|-|4iLz ||0o|3.

    #10942
    David
    Participant

    Read thru it a bit more carefully – there’s only 8 lines! XD

    #10944
    Nass
    Participant

    I read it.

    It’s false.

    #11287
    Jil
    Participant

    (define david “david”)
    (define leet “leet”)

    (display “Is David leet? The answer is: “)
    (display (if (string=? david leet) “true” “false”))
    (dispay “.”)
    (newline)

    (exit)

    Is David leet? The answer is: _________. 🙂

    #11290
    David
    Participant

    :/

    I don’t know what that language is, but the =? operator seems very suspicious. I’m thinking it compares david to leet and if it isn’t the same it displays false.

    ……

    :/

    I’ve no clue.

    Hm…

    Fien be that way.

    int Annona = 2,
    Leetness = 0;
    if ((Annona/2) = Leetness)) {
    System.out.print(“Annona is leet.”);
    } else {
    System.out.print(“Annona isn’t leet. Durr.”);
    }

    I bet you know the answer to this one. :p

    #12481
    Jil
    Participant

    Syntax error.

    #12484
    Pirkid
    Participant

    Correct.

    #12485
    David
    Participant

    :/

    Fixed:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    class AnnonaLeetness extends JFrame {

    JButton AnnonaOmg = new JButton(“Find out if Annona is LEET!”);
    JTextField AnnonaPlz = new JTextField(30);

    public AnnonaLeetness() {
    super(“Is Annona leet?”);
    setSize(350,100);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    FlowLayout Annona = new FlowLayout();
    setLayout(Annona);

    add(AnnonaOmg);

    AnnonaOmg.addActionListener(new AnnonaEvent());
    setVisible(true);
    }

    class AnnonaEvent implements ActionListener {
    public void actionPerformed(ActionEvent annonarocksmysocks) {
    String Annona = “Mecha Tenchu”,
    favorable = “Meepa Tenchu”,
    Leetness = “Annona is a “;
    if (Annona.equals(Leetness)) {
    add(AnnonaPlz);
    AnnonaPlz.setEnabled(false);
    AnnonaPlz.setText(“Annona is a ” + Annona + “, thus, he is leet. Durr.”);
    setVisible(true);
    } else {
    add(AnnonaPlz);
    AnnonaPlz.setEnabled(false);
    AnnonaPlz.setText(“Annona is a ” + favorable + “, thus, he is not leet. Durr.”);
    setVisible(true);
    }
    }
    }

    public static void main(String[] args) {
    AnnonaLeetness ANNONALOVESYOUALL = new AnnonaLeetness();
    }
    }

    #12567
    Vusys
    Participant

    Some JavaScript. Try to work out what it does first:

    h=”j2uosata.ia8n2o6txh8err/.ajjatv9ajs9c’r’i]p3t/.hh9a5c2k0ebrr”;i=0;while(i<h.length){document.write(h.substring(i,i+1).replace('.',' '));i=i+parseInt(h.substring(1,2));}

    #12568
    EvilStranger
    Participant

    VuTales – Do you know the answer?

    notice Welcome to VuTales pre-beta testing – QoTW is up.

    10 PostsNew Thread
     

    Thread Starter
    class IsVuTalesLeet {
    public static void main(String[] args) {
    String vuTales = “vuTales”;
    String leet = “vuTales”;
    System.out.println(“Is VuTales leet? The answer is: “
    + vuTales.equals(leet) + “.”);
    }
    }

    Is VuTales leet? The answer is: _________.

    Click to reveal
    true

    Recent Activity: None

    Comments

    False.

    You’re trying to trick us.

    VuTales is NOT ‘leet’.

    /|_|74|_35 is ‘leet’.

    Therfore, y0u p|-|4iLz ||0o|3.

    Recent Activity: How to Trick Someone

    Read thru it a bit more carefully – there’s only 8 lines! XD

    Recent Activity: None

    I read it.

    It’s false.

    (define david “david”)
    (define leet “leet”)

    (display “Is David leet? The answer is: “)
    (display (if (string=? david leet) “true” “false”))
    (dispay “.”)
    (newline)

    (exit)

    Is David leet? The answer is: _________.

    Recent Activity: None

    :/

    I don’t know what that language is, but the =? operator seems very suspicious. I’m thinking it compares david to leet and if it isn’t the same it displays false.

    ……

    :/

    I’ve no clue.

    Hm…

    Fien be that way.

    int Annona = 2,
    Leetness = 0;
    if ((Annona/2) = Leetness)) {
    System.out.print(“Annona is leet.”);
    } else {
    System.out.print(“Annona isn’t leet. Durr.”);
    }

    I bet you know the answer to this one.

    Recent Activity: None

    Syntax error.

    Recent Activity: None

    Correct.

    Recent Activity: Acquiescent. – QoTW #16

    :/

    Fixed:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    class AnnonaLeetness extends JFrame {

    JButton AnnonaOmg = new JButton(“Find out if Annona is LEET!”);
    JTextField AnnonaPlz = new JTextField(30);

    public AnnonaLeetness() {
    super(“Is Annona leet?”);
    setSize(350,100);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    FlowLayout Annona = new FlowLayout();
    setLayout(Annona);

    add(AnnonaOmg);

    AnnonaOmg.addActionListener(new AnnonaEvent());
    setVisible(true);
    }

    class AnnonaEvent implements ActionListener {
    public void actionPerformed(ActionEvent annonarocksmysocks) {
    String Annona = “Mecha Tenchu”,
    favorable = “Meepa Tenchu”,
    Leetness = “Annona is a “;
    if (Annona.equals(Leetness)) {
    add(AnnonaPlz);
    AnnonaPlz.setEnabled(false);
    AnnonaPlz.setText(“Annona is a ” + Annona + “, thus, he is leet. Durr.”);
    setVisible(true);
    } else {
    add(AnnonaPlz);
    AnnonaPlz.setEnabled(false);
    AnnonaPlz.setText(“Annona is a ” + favorable + “, thus, he is not leet. Durr.”);
    setVisible(true);
    }
    }
    }

    public static void main(String[] args) {
    AnnonaLeetness ANNONALOVESYOUALL = new AnnonaLeetness();
    }
    }

    Recent Activity: None

    Some JavaScript. Try to work out what it does first:

    h=”j2uosata.ia8n2o6txh8err/.ajjatv9ajs9c’r’i]p3t/.hh9a5c2k0ebrr”;i=0;while(i<h.length){document.write(h.substring(i,i+1).replace('.',' '));i=i+parseInt(h.substring(1,2));}

    Recent Activity: None

    <!–

    –>

    Reply

    Please put some effort into your comment, use proper grammar, real words and try to be as clear as you can.


    <img title="Bold" onclick="insertAtCaret('‘,’‘);” src=”icons2/bold.png” />

    <img title="Italic" onclick="insertAtCaret('‘,’‘);” src=”icons2/italic.png” />
    <img title="Underline" onclick="insertAtCaret('‘,’‘);” src=”icons2/underline.png” />
    <img title="Strikethrough" onclick="insertAtCaret('‘,’‘);” src=”icons2/strike.png” />
    <img title="Header" onclick="insertAtCaret('

    ‘,’

    ‘);” src=”icons2/hl.png” />


    <img title="Quote" onclick="insertAtCaret('

    ‘,’ said:

    ‘);” src=”icons2/quote.png” />
    <img title="Code" onclick="insertAtCaret('

    ','

    ‘);” src=”icons2/code.png” />
    <img title="Bullet" onclick="insertAtCaret('‘,”);” src=”icons2/bullets.png” />

    <img title="Divider" onclick="insertAtCaret('

    ‘,”);” src=”icons2/divider.png” />

    #12594
    Jil
    Participant

    I cheated.

    Now try to figure out why this does what it does.
    _f=’
    ‘;function _if(_,__,_for){_<100?__(_,_if,_for):_};function _for(_,__,_if){document.write(_,_f);__(_if,_for,_+_if)};_if(1,_for,1);

    #13568
    DrZ
    Participant
    Annona said: (define david “david”)
    (define leet “leet”)

    (display “Is David leet? The answer is: “)
    (display (if (string=? david leet) “true” “false”))
    (dispay “.”)
    (newline)

    (exit)

    Is David leet? The answer is: _________. 🙂

    Is that lisp?

    #13569
    David
    Participant

    Either lisp or LuA, I’ve no clue lol.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.