MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/ReverseString.java:2–12  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1public class ReverseString {
2 public static void main(String[] args) {
3 String word = "Hello Jorge";
4 String reverseWord = "";
5
6 for (int i = word.length(); i != 0; i--) {
7 reverseWord += word.substring(i-1,i);
8 }
9
10 System.out.println(reverseWord);
11
12 }
13}

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected