Java Java Basics Getting Started with Java Strings, Variables, and Formatting

how should we run

Name.java
      Sting Firstname ="aysuh";

1 Answer

Frederic Saddi
Frederic Saddi
10,131 Points

I'm a bit confused by your question, but I'll just suppose you got an error running that code.

String Firstname = "whatever";

You typed "Sting" not "String". Also, if it's not a class name, the preferred way of naming variables would be camelCasing (no upper case letter at the start).

Hope this help! (Tell me if I got your question wrong)