16,021,294 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12200805 (Top 35 by date)
Member 12200805
10-Dec-20 5:37am
View
thank you soo much Sir,and Sorry for the mistake
Member 12200805
10-Dec-20 5:30am
View
kindly Let me know if updated Fiddle is Proper.if not i will try to explain
Member 12200805
10-Dec-20 5:27am
View
There is not even a single example i saw for this issue in Google,But Sorry for the Confusion.
Member 12200805
10-Dec-20 5:14am
View
Thanks for Your Reply Sir.Sorry,I updated my fiddle
Member 12200805
10-Dec-20 5:04am
View
I am Using PHP in my real Code thats why ,i am unable to create fiddle with my original work.sorry if this is wrong
Member 12200805
10-Dec-20 4:58am
View
Thank for Your response sir,I am unable to paste the image here..i posted one image in stackoverflow.Kindly take a look.my requirement is SelectAll for Column wise thats why i add children("td")
Member 12200805
15-Sep-16 12:15pm
View
ho to use this String s in coding
Member 12200805
15-Sep-16 11:58am
View
yes i have possible letters in a string
String s = "ஃஅஆஇஈஉஊஎஏஐஒஓஔக்ககாகிகீகுகூகெகேகைகொகோகௌங்ஙஙாஙிஙீஙுஙூஙெஙேஙைஙொஙோஙௌச்சசாசிசீசுசூசெசேசைசொசோசௌஞ்ஞஞாஞிஞீஞுஞூஞெஞேஞைஞொஞோஞௌட்டடாடிடீடுடூடெடே";
Member 12200805
10-Sep-16 8:23am
View
below is my first coding which gave me a correct output in the comment prompt..so wat should i do to get this output in the file
mport java.io.BufferedReader;
import java.io.FileReader;
public class gg {
public static void main(String[] args) {
FileReader fr = null;
BufferedReader br =null;
String [] stringArray;
int counLine = 0;
int arrayLength ;
String s="";
String stringLine="";
try{
fr = new FileReader("D:\\surya\\New folder\\ss\\jj.txt");
br = new BufferedReader(fr);
while((s = br.readLine()) != null){
stringLine = stringLine + s;
stringLine = stringLine + " "
counLine ++;
}System.out.println(stringLine);
stringArray = stringLine.split(" ");
arrayLength = stringArray.length;
for (int i = 0; i < arrayLength; i++) {
int c = 1 ;
for (int j = i+1; j < arrayLength; j++) {
if(stringArray[i].equalsIgnoreCase(stringArray[j])){
c++;
for (int j2 = j; j2 < arrayLength; j2++) {
}
}
int k;
for(k=2;k==stringArray[i].length();i++)
// if(stringArray[i].length()==1)
{
System.out.println(stringArray[i]);
}}} fr.close();
br.close();
}catch (Exception e) {
e.printStackTrace();
}}}
Member 12200805
1-Jul-16 11:50am
View
got only teo lines in correct order
(i.e) 0 0 0 A B C D
0 0 A B C D E
Member 12200805
1-Jul-16 11:46am
View
Deleted
i get only two lines in correct order
(i.e)0 0 0 A B C D
0 0 A B C D E
Member 12200805
20-Jun-16 10:38am
View
how to use improve question
Member 12200805
19-Jun-16 13:37pm
View
Deleted
Sir,i have multiple files.i am going to take particular word in a string.
eg)String word="author";
now i want to get all the files containing "author" along with the before and after words of "author" inside the files
Member 12200805
17-May-16 10:55am
View
i have found the solution to add the files in jlist...but i cant find the solution to open the file .
Member 12200805
9-Jan-16 5:00am
View
thank you so much...
Member 12200805
9-Jan-16 4:55am
View
thank you..i try to get idea from the link u send..
Member 12200805
9-Jan-16 4:51am
View
sure sir
Member 12200805
9-Jan-16 4:20am
View
this is the actual program..i used to get the arraylist..bt want to knw how to get the output on the file...
import java.util.ArrayList;
public class array {
public static void main(String[] args) {
ArrayList <string> elements = new ArrayList<>();
elements.add( one);
elements.add( two);
elements.add( three);
int count = elements.size();
System.out.println( "Count: " + count);
for (int i = 0; i < elements.size(); i++) {
int value = elements.get(i);
System.out.println("Element: " + value);
}
}
}
Member 12200805
9-Jan-16 4:14am
View
import java.util.ArrayList;
public array {
public static void main(String[] args) {
ArrayList <string> elements = new ArrayList<>();
elements.add( one);
elements.add( two);
elements.add( three);
for (int i = 0; i < elements.size(); i++) {
int value = elements.get(i);
System.out.println("Element: " + value);
}
}
}
Member 12200805
9-Jan-16 3:58am
View
i can able to get the arraylist on the comment prompt..bt dont know how to write that on a file
Member 12200805
23-Dec-15 5:44am
View
s..sir u r rite...got the output...thank u soo much..
Member 12200805
23-Dec-15 5:21am
View
even this program works in comment prompt...i do it in net beans because i am trying with a tamil language files..
Member 12200805
23-Dec-15 5:19am
View
thanks for ur answer sir..but i have directory in the name hh...and this programs give me the output in comment prompt...only in net beans it throws this error?
Member 12200805
23-Dec-15 4:29am
View
line 27: for (File f : files) {
Member 12200805
23-Dec-15 0:40am
View
this program run successfully in comment prompt but shows error in netbeans...
for (File f : files) {
---in this line..
Member 12200805
22-Dec-15 0:42am
View
if i am using tamil files..getting output like this... [ இன�டர�வியூதெரிந�த�கொள�ள�ங�கள�_-Dinamani-TamilDailyNews_DATE]
 à ®¤à ¯‡à ®°à ¯�à ®µà ¯� à ®Žà ®©à ¯�à ®±à ®¾à ®²à ¯‡ à ®ªà ®³à ¯�à ®³à ®¿ à ®®à ®¾à ®Â
Member 12200805
18-Dec-15 5:32am
View
yes sir i have some files in the dir...
Member 12200805
15-Dec-15 3:41am
View
got the output ..thank you ..sir
Member 12200805
15-Dec-15 3:07am
View
thank you sir ..i got the output ....but respective file contents changing between multiple files ...where i hava to change the code to get the file content correctly?
Member 12200805
15-Dec-15 1:36am
View
Exception in thread "main" java.lang.NullPointerException
at tryy.main(tryy.java:15)
getting this error while compiling...any solutions plz
Member 12200805
14-Dec-15 4:07am
View
i am new to programming,thanks for ur help..
Member 12200805
14-Dec-15 3:55am
View
sir, PrintWriter out
= new PrintWriter(new BufferedWriter(new FileWriter("foo.out")));
this same condition is used for multiple files also?
Member 12200805
14-Dec-15 3:36am
View
i dont know how to get the ouput in the existing file itself
Member 12200805
14-Dec-15 3:31am
View
sir i have to read all files from the folder and should get the name of the file inside each file respectively...this changes(adding name of the file) should be directly go to the excisting file instead of displaying in the command prompt..
before running the file will have only contents..after running this program, the file should contain respective file name with content..
Member 12200805
14-Dec-15 0:41am
View
how to get the output in the excisting file itself?
Show More