Comment on Tutorial - Using substring( ) in Java By Fazal



Comment Added by : bond

Comment Added at : 2014-08-16 17:02:10

Comment on Tutorial : Using substring( ) in Java By Fazal
import java.io.*;
class CharaaDemofromnet
{
public static void main(String args[])throws IOException
{

char arr[]={'a','b','c'};
String s = new String(arr);
int v=s.length();
for(int k=0;k<v;k++)
{
for(int j=0;j<v;j++)
{
for(int i=0;i<v-j-k;i++)
{
System.out.print(arr[i]);
}
System.out.println();
}
}
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thanks for the solution. I must say however that t
View Tutorial          By: Pierre at 2009-11-19 20:16:35

2. Hello, Can you please send me the complete code to
View Tutorial          By: koksingh at 2008-01-15 00:22:40

3. very excellent1!!!!!!!!!!!!!!!!!!!!!!!!!!!
View Tutorial          By: santosh manchala at 2010-10-10 13:07:07

4. 2nd example not gud
View Tutorial          By: prakash at 2011-11-15 11:07:43

5. Hi, i am new java, and i want to become gud develo
View Tutorial          By: amit at 2012-02-16 12:21:25

6. excellent
View Tutorial          By: shamim at 2011-07-08 02:39:31

7. In case your having trouble

1 the a

View Tutorial          By: Sin at 2013-01-17 05:40:37

8. Can you send me the file please?
[email protected]

View Tutorial          By: laue at 2014-11-18 20:35:02

9. Dear sir,
Can you provide me for a simple p

View Tutorial          By: kartikeya at 2012-12-22 10:19:41

10. If you are working with the multi-threaded program
View Tutorial          By: it career at 2010-02-24 00:13:50