No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
26 Posted Topics
i have few txt files in one folder. i need a program that will open that folder and read all files one by one to find a string and give me output. so far i got code to do this from only one particular txt file. but i cant make … | |
I have an array having unique 'table_id' that will find 'parent_id' and goes under parent index. My Array: Array ( [0] => Array ( [table_id] => 7 [table_name] => Macro [parent_table] => 1 ) [1] => Array ( [table_id] => 4 [table_name] => Dise [parent_table] => 7 ) [2] => … | |
I don't have much experience with jQuery, so need a small help to build up one navigation menu bar where hover image will float/animate from previous(.current) location. Example: If the hover image remaining under 'HOME' as current page and if i hover/mouseover to 'CONTACT' menu then the 'hover_img' will float(animate) … ![]() | |
I have three arrays & i like to convert it in one multidimensional array. $array1=array('Kathy', 'Adam', 'Jenny'); $array2=array('student','teacher','driver'); $array3=array(2, 5, 8); $mix=array(); $mix['name']=array_values( $array1); $mix['profession']=array_values( $array2); $mix['SL']=array_values( $array3); OUTPUT: Array ( [name] => Array ( [0] => Kathy [1] => Adam [2] => Jenny ) [profession] => Array ( [0] … | |
i'v 1 multidimensional array from where i just want to print where (parent==0) by counting. It suppose to provide me 2 value but when i write return method on line-32 it show me d 1st one & whn write on line-35 , it show me the last one. how can … | |
today 1st time i'm trying ot learn recursion funtion thru online tutorails but stuck at begining stage. i found below code but anything i give value its provide me output: 1 so, i need better explanation of that: function factorial($n){ if($n==0){ return 1; } return fact($n, 1); } function fact($i, … | |
in my home.php file i hv defined one path as javascript variable like below: <?php $path= "http://localhost/tiffany/" ?> <script type="text/javascript" src="<?php echo $path; ?>js/manuals.js"></script> <script type="text/javascript" > var templateUrl = '<?php echo $path; ?>'; </script> & in my 'manuals.js' file i have included someother js files adding with that variable: … | |
i'm just very new in php & its my 1st post here.. having a small problem to pass the login error msg to LOGIN.PHP from check login page. here is the code of **checklogin.php** file: if($count==1){ // Register $myusername, $mypassword and redirect to file "welcome.php" session_register("myusername"); session_register("mypassword"); header("location:welcome.php"); } else … | |
hi, i am looking for simple method to copy more than 2/3 arrays into one array.. so far i just learn to copy only two arrays at a time.. [CODE]String[][] data=new String [10][]; String[] column={"Name", "Age", "Sex"}; String[][] first={{"Calvin", "male", "23"}, {"Kathy","female","21"}}; String[][] second={{"Ravi","male","26"},{"Jesan","male","25"}}; String[][] third={{"Jacky", "male", "32"}, {"Jami","female", "23"}}; … | |
hi, first time i am using 2D array, so not much familiar with this(just learning). below, in my program trying to return the values of 2D array that i m calling from different class and showing in JTable. its working but when i am using condition then getting some null/emty … | |
hi, here is my program that can read through a txt file line by line to find one word named "friends". if any line contains of this word then get the line and check my precised friend's name is mentioned there or not ? its working when my precised named … | |
hi, here is my code having return method that working correctly when i print it from inside of the method, but if i call from main method its shows only one output instead all results.. [CODE]public class SearchCompare{ .... public String process(){ String showResult=null; ... .. for (String found: names.keySet()) … | |
hi, I am trying to build a small program that can search java ‘class’ files and ‘method’s from a repository where millions of java files are stored. In addition it has an algorithm(LONGEST COMMON SUBSEQUENCE) to compare the results to find the similarity percentage and user can make precision by … | |
hi, i am trying to build a simple program where system asking info (name,age,sex & location) to make a table using do-while loop. for each info will create one new row in table that i dont know how to make.. please help me... here, i made for one single row … | |
hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to … | |
Re: download from this site........[url]http://www.jgrasp.org/[/url] & enjoy. | |
hi, i m just wanna open/explore/view inside of any txt or doc file from folder by using JFileChooser... here i made the code, pls tell me what need to add to open the files.. [CODE] import java.io.File; import javax.swing.JFileChooser; public class OpenFile { public static void main(String args[]) { JFileChooser … | |
hi, i m facing a small prob in GUI, need to save my output to a particular folder. below this code showing the square of any integer in TextField named: "resultField". i've a button "save" that need to save the result from that TextField, suppose in my "c:\Repository " folder … | |
i am very new in java. anyone pls tell me step by step that how can i make executable jar file for my ListFile.java file .... I made a directory named "Test" where put ListFile.java & ListFile.class file. then i made a "mainClass.mf" file in same directory where having this … | |
As a java beginnners what i incline to do for my program almost get solution from this site. Right now i need a small help to get file name or full path for output files of my program. so far my program is running as a search engine to find … | |
i am very new in java. in GUI class i have code like this : [CODE] public void actionPerformed(ActionEvent e) { if(e.getSource()==listButton){ ArrayList<String> list = new ArrayList<String>(); list.add("Orange"); list.add("Apple"); list.add("Pineapple"); list.add("Lemon"); list.add("Pear"); for(int i=0; i < list.size(); i++) { String s = list.get(i); { textArea.setText(s+"\n"); } }[/CODE] but its showing … | |
in C language i learned Precision paramater to show how many decimal point to print... in java how to do this precision for double, float etc.................... | |
As a newbie i m facing a small prob right now... i have code to search names from many files and compare the results with similarity scoring. its working but when the names found my program should show the filepath or fileName for each names. how can i do this … | |
i have GUI class named 'myGUI' where contains textField, button, textArea and so on.... the code like this: [CODE] p2.add(c=new Label("Type name to search:")); p2.add(m=new TextField(10)); p2.add(b=new Button ("SEARCH")); b.addActionListener(this); p.add(k= new Label("CLICK SEARCH TO START ACTION") p1.add(t=new TextArea(""), BorderLayout.CENTER); [/CODE] i have another class file named 'searchCompare' where user … | |
i have code to find next string after a particular string that shows result correctly.. right now i want to make an array to show the list of my output's name. [CODE] FileReader fr; BufferedReader br; String result=""; String word= new String(); String target = "friend"; try{ //read large text … | |
i m very new in java. now facing prob to get char/string after a particular string from txt file. suppose i have few text files in one folder and every txt files contain some line like my first friend jocky, second friend vicky and so on.....:$ my program should open … |
The End.