Accounting Tutoring Accounting Tutoring

Combination View Flat View Tree View
Java Coding
toggle
Write a java program to do sum of command line argument passed two Double numbers.
Here I am posting java coding // Java program to reverse a string using recursion

class StringReverse { /* Function to print reverse of the passed string */ void reverse(String str) { if ((str==null)||(str.length() <= 1)) System.out.println(str); else { System.out.print(str.charAt(str.length()-1)); reverse(str.substring(0,str.length()-1)); } }

/* Driver program to test above function */
public static void main(String[] args)
{
String str = "Geeks for Geeks";
StringReverse obj = new StringReverse();
obj.reverse(str);
}
}
To know more Java Classes in Nashik
Flag Flag
RE: Java Coding
9/22/21 4:26 AM as a reply to Anonymous.
Java is an object-oriented, class-based, high-level programming language that was developed by James Gosling of Sun Microsystems. Java is an open-source, machine-independent programming language. It is designed to have minimal implementation dependencies. Java, unlike C++ and C++ programming languages that cannot be run in different environments, is a programming language that can be written once and run anywhere.

Java Classes in chennai
Flag Flag

Staging Enabled