Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j])
, which is expensive, inside loops but outside and use Java clearing the string buffer after loop Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j])
, which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j])
, which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j]),
, which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j]),
which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j])
, which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,linesstrings
andlinestring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j]),
which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,lines
andline.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j]),
which is expensive, inside loops but outside and use Java clearing the string buffer after loop.
Uppercase variable names like
N
do not follow Java conventions, which iscamelCase.
N
,s
andstr
aren't too descriptive names. I'd name themnumber
,strings
andstring.
I'd simplify:
String line = br.readLine(); int N = Integer.parseInt(line);
to:
int number = Integer.parseInt(br.readLine());
- I'd not create
StringBuilder sb = new StringBuilder(s[j]),
which is expensive, inside loops but outside and use Java clearing the string buffer after loop.