public class Comments {
public static void main(String args) {
/* wow
i
can
code*
// System.out.println(“Noise!”);
}
}
it wont compile
public class Comments {
public static void main(String args) {
/* wow
i
can
code*
// System.out.println(“Noise!”);
}
}
it wont compile
/* wow
i
can
code*\
you have to use /
( forward slash) for closing comment but you used \
( backslash )
see here both are forward slash
/*
Hello,
Java!
*/
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.