PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 30, 2022

[FIXED] What does EOF FOUND '}' mean in Check style?

 October 30, 2022     checkstyle, eof, intellij-14, intellij-idea, java     No comments   

Issue

I'm using intellij communicated version and also add checkstyle plugin

how ever, i made simple java file just say hello

public class hello {
public static void main(string[] final args)
{
    system.out.println("hello, world");

}
}

it's simply run. however checkstyle tell me there is problem at the last line. he told me

Got an exception-expecting EOF, Found '}' error

I don't know what is the problem. block is correctly close.
is there something i need to add or fix that ?


Solution

Try formatting it like

public class Hello 
{
  public static void main(String[] args)
  {
     System.out.println("hello, world");
  }
}

and the "s" in system.out.println and string[], should be capital

Checkstyle is a tool which is used to find flaws in formatting and coding conventions followed if any exists in the code. The rules are set using by configuring the checkstyle. And if any part of your code does not abide by them, it will throw an exception. In most of the cases exceptions will be self explanatory. You can use google depending on the exception you get.



Answered By - KaustubhSV
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing