MCPcopy Create free account
hub / github.com/apna-college/Alpha / printChars

Method printChars

3_Strings/StringBasics.java:4–9  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

2
3public class StringBasics {
4 public static void printChars(String str) {
5 for(int i=0; i<str.length(); i++) {
6 System.out.print(str.charAt(i)+" ");
7 }
8 System.out.println();
9 }
10 public static void main(String args[]) {
11 Scanner sc = new Scanner(System.in);
12 String str = sc.next();

Callers

nothing calls this directly

Calls 1

printMethod · 0.45

Tested by

no test coverage detected