Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
Improved Formatting; Fixed grammar
Source Link
Quill
  • 12k
  • 5
  • 41
  • 93
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
added 4 characters in body
Source Link
Gerold Broser
  • 1.3k
  • 8
  • 20
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, linesstrings and linestring.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, lines and line.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to

 int number = Integer.parseInt(br.readLine());
  • Uppercase variable names like N do not follow Java conventions, which is camelCase.

  • N, s and str aren't too descriptive names. I'd name them number, strings and string.

  • I'd simplify:

     String line = br.readLine();
     int N = Integer.parseInt(line);
    

to:

 int number = Integer.parseInt(br.readLine());
Source Link
Gerold Broser
  • 1.3k
  • 8
  • 20
Loading
lang-java

AltStyle によって変換されたページ (->オリジナル) /