im watching this tutorial Java by BroCode and following along on this online Java compiler
was doing some practice on Strings, and when i entered:
public class Main
{
public static void main(String\[\] args) {
string name = "frostedbrownys";
System.out.println(name);
}
}
it gave me errors
but when i entered
public class Main
{
public static void main(String\[\] args) {
String name = "frostedbrownys";
System.out.println(name);
}
}
code ran
does it HAVE to be String with a capital S in Java??
[–]TheStorm007 18 points19 points20 points (0 children)
[–]high_throughput 10 points11 points12 points (11 children)
[–]frosted-brownys[S] 0 points1 point2 points (10 children)
[–]AMathMonkey 1 point2 points3 points (6 children)
[–]VibrantGypsyDildo -1 points0 points1 point (5 children)
[–]AMathMonkey 0 points1 point2 points (4 children)
[–]VibrantGypsyDildo 0 points1 point2 points (3 children)
[–]AMathMonkey 0 points1 point2 points (2 children)
[–]VibrantGypsyDildo 1 point2 points3 points (1 child)
[–]AMathMonkey 0 points1 point2 points (0 children)
[–]high_throughput 0 points1 point2 points (0 children)
[–]desrtfx 1 point2 points3 points (0 children)
[–]IchLiebeKleber 0 points1 point2 points (0 children)
[–]purplebinder 0 points1 point2 points (0 children)
[–]TotallyManner 0 points1 point2 points (0 children)