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



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. Great tutorial about ArrayList .It's a very great
View Tutorial          By: umesh sharma at 2009-05-14 20:40:39

2. Sometimes java do support operator overloading as
View Tutorial          By: Gunjan Srivastava at 2011-07-06 09:14:00

3. very nice explanation of STATIC....HAY man , you j
View Tutorial          By: harkeet at 2012-12-18 17:48:43

4. This is a great idea if I am targeting the require
View Tutorial          By: Shanthamurthy Hanumantharayappa at 2015-09-14 16:45:22

5. Thanks for the information.
View Tutorial          By: Appala Naidu at 2012-02-10 09:11:29

6. the program does run thank you for that .....

View Tutorial          By: VIKRAM at 2007-03-12 13:34:24

7. Dude,
Atleast indent and try to make sense

View Tutorial          By: Phani at 2015-03-19 16:51:57

8. thanx nice explanation...
View Tutorial          By: vignesh at 2012-07-15 20:12:22

9. plz i want afull code to send sms to mobile includ
View Tutorial          By: alosh at 2010-10-17 08:39:25

10. Hi, this was useful. how can integrate j2me progra
View Tutorial          By: karthik at 2013-01-23 10:02:02