Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Build Failed
- ------------------------------
- djName.java:1: error: class DJName is public, should be declared in a file named DJName.java
- public class DJName
- ^
- djName.java:6: error: cannot find symbol
- Scanner scan = new Scanner(System.in);
- ^
- symbol: class Scanner
- location: class DJName
- djName.java:6: error: cannot find symbol
- Scanner scan = new Scanner(System.in);
- ^
- symbol: class Scanner
- location: class DJName
- djName.java:9: error: non-static method substring(int,int) cannot be referenced from a static context
- String firstNamePrint = String.substring(0, firstName.length() / 2);
- ^
- 4 errors
Advertisement
Add Comment
Please, Sign In to add comment