javascript
Brief description  about Online courses   join in Online courses
View shailendra  dixit 's Profile

escape sequences

hello sir,
i am having trouble with the output
should the output be this for the given program

class sd {
public static void main (String[] args) {
System.out.println(" One");
System.out.println("/t Two");
System.out.println("/t/t Three... WHEEE");
}
}


output


One
/t Two
/t/t Three... WHEEE
Asked by shailendra dixit | Jun 26, 2012 |  Reply now
Replies (2)
View shailendra dixit 's Profile
thanks nitoo
it worked
Jun 28, 2012
View n n n 's Profile
Hi, You need to use backward slash instead of forward slash. e.g "\t Two"

Thanks,
Nitoo.
Jun 26, 2012