So I've always wanted to learn how to code and I've decided to take it up.
-------------------------------------------------------------------
public class D {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
addExlamationMark("Hello there")
public static void addExclamationMark(String s);{
System.out.println(s + "!");
}
};
-------------------------------------------------------------------
I am trying to print a line where it says my "Hello there" but adds an exclamation mark.
Like adding 2 strings together.
-----------------
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at D.main(D.java:4)
-------------------
This is what the console tells me and i cant make it work.
Sorry for being brain dead.
-------------------------------------------------------------------
public class D {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
addExlamationMark("Hello there")
public static void addExclamationMark(String s);{
System.out.println(s + "!");
}
};
-------------------------------------------------------------------
I am trying to print a line where it says my "Hello there" but adds an exclamation mark.
Like adding 2 strings together.
-----------------
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at D.main(D.java:4)
-------------------
This is what the console tells me and i cant make it work.
Sorry for being brain dead.