Anam Abdul Razaq

Greenhorn
+ Follow
since Jan 25, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anam Abdul Razaq

I mentioned before that i have to make an application that would implement "One R ", "Mean Imputation" and "Binning" algorithms.
For that the user first has to enter a trainee data, the code will run on that data and make the rules for One R algorithm. Then the user will enter "Test Data".
Both times the data will be entered in the form of a csv or txt file.
4 years ago
I am sorry for the last post. It was out of nowhere.
Yes, i am still managing to deal with csv file from the user.
4 years ago
I asked my teacher about the input data.
He said that first the user will enter a "Trainee data". The program will learn the rules from it and then user will enter the "Test Data".
4 years ago
Thanks a lot. Will try it out.
4 years ago
Thanks a lot everybody.

I fixed my File Filter problem.

Step 2 :
I have used Scanner for reading from the file. But i could only figure out how to read lines.
I am facing a problem on how to split the line and store it in an array.(Actually i don't understand what does a split/useDelimiter do ). I have read about it at a lot of places but i don't understand its concept
4 years ago
What do i have to supply at String description parameter?
4 years ago
I know how to simply read Lines from the file but i don't know how to split and store them in an array.
4 years ago
java.lang.IllegalArgumentException: Extensions must be non-null and not empty
at javax.swing.filechooser.FileNameExtensionFilter.<init>(FileNameExtensionFilter.java:76)
at class1.actionPerformed(class1.java:30)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:720)
at java.awt.EventQueue$4.run(EventQueue.java:718)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

4 years ago
Thanks for a link to fileFilter, but it is throwing a lot of exceptions.
4 years ago
I have achieved to get a file from the user using JFileChooser. This is what i achieved. No errors till now.
Thanks to Campbell Ritchie.


Now step 2 to be accomplished : Extracting data from file in such a way that i can start working on the algorithms.
4 years ago
1) The user is allowed to input a csv or a txt file.
2) The application should handle any data set (big or small)
4) There is going to be only one user of the application.
4 years ago
Actually
I have to make a java application which will:

1) Take an input file from the user
2) Perform One R , Imputation and Binning algorithms.
3) Display the result of the Algorithms.

So, i have started the project and the first hurdle is "how to take input from the user".
4 years ago
Acemaria
I have no idea of what you are talking about?
4 years ago
Actually user is allowed to enter any data. Its not fixed like only data related to an employee or a patient or a student is to be entered. So, the attributes of a class and their data types cannot be specified.
Data is supposed to be "generic" not "specific".
That is why i am facing a difficulty in how to store each row in a class
4 years ago
I am very interested to know about how to create a class/classes that would store a row of csv??? I am also allowed a txt file for input.
As i am new to java so i have no idea of using a database with it.
4 years ago