public class Hello {

public static void main (String[] args) {
    System.out.println("My contact number is: ");

    int srv = 82;

Recommended Answers

Line 5 has a small error.

Try System.out.println(srv);

Jump to Post

All 2 Replies

I think it would be worth your while to check out a modern IDE with syntax checking. Visual Studio Code and Netbeans come to mind. Free and cross platform.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.