Why does Jcreator show iIlegal start of expression?
Posted
by
Inusual Whisper Sinclair
on Stack Overflow
See other posts from Stack Overflow
or by Inusual Whisper Sinclair
Published on 2013-07-02T04:30:17Z
Indexed on
2013/07/02
5:05 UTC
Read the original article
Hit count: 278
I am new at programming and currently in our classes we are learning java. I am trying to create a routine in which I need to use String
variables only. Below it is the code in which I am working with:
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System. in ));
PrintStream out = System.out;
String hair.equals("damagedHair");
cutHair(marvin);
cleanHair(michelle);
for (int i = 0; i < 2; i++) {
static void cutHair(String marvin) {
String cabello;
marvin.equals(hair);
if (marvin.equals("damagedHair")) {
cabello.equals("newHaircut");
result(hair);
}
static void cleanHair(String michelle) {
String hair;
michelle.equals(hair);
if (michelle.equals(newHaircut)) {
hair.equals("putShampooAndConditioner");
result(hair);
}
static void result(String pHair) {;
PrintStream out = System.out;
out.println("=============");
out.println(pHair);
out.println("=============");
}
}
Jcreator is giving me an error that says Illegal start of expression
and also java 50 error ';' expected
.
I am not sure why is this coming up and I am a little confused as to whether I am doing something I am not supposed to and how to correct it. Sorry about the double posting, this is the right message. Need some help from you guys to figure this out.
Thanks in advanced!
© Stack Overflow or respective owner