We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40bd165 commit cfe721dCopy full SHA for cfe721d
1 file changed
easyq/src/easyq/splitL.java
@@ -2,7 +2,7 @@
2
*
3
*/
4
package easyq;
5
-
+import java.util.*;
6
/**
7
* @author M.NAVEEN
8
* RANDOM CODER'S
@@ -15,7 +15,7 @@ public static void main(String[] args)
15
{
16
17
String str="JavaISBALA";
18
- int n=4;
+ int n= new Scanner(System.in).nextInt();
19
for(int i=0;i<str.length();i=i+n) {
20
if(i+n<str.length())
21
System.out.println(str.substring(i, i+n));
0 commit comments