Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~19.3K People Reached
Favorite Tags
Member Avatar for gingerfish

hi whats the meaning of these signs? for example: [B]System.out.printf("[COLOR="Red"][U]%6s %6s %10s[/U][/COLOR]", "x1", "x2", "(y1, y2) \n");[/B]

Member Avatar for javaboy123
0
9K
Member Avatar for gingerfish

i have these two separate files: html form: [CODE]<form name="form" action="1.jsp" method="post"> <b>File Upload:</b> <input type=file name="seqFile"> <input type=submit name="submit" value="submit" > </form> [/CODE] and JSP file 1.jsp: [CODE]<%@ page language="java" import="java.io.*" errorPage="" %> <% if(request.getParameter("seqFile")!=null){ //"C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/ROOT/test/seq.txt" String file = request.getParameter("seqFile"); FileReader testRead; testRead = new …

0
74
Member Avatar for gingerfish

i have this code, when i run this script no error shows up, but at the same time no result shows up too :( i dont understand where the problem is... :( [CODE] String result2=""; String data2; URL u2; URLConnection uc2; u2 = new URL("http://genome.ucsc.edu/cgi-bin/hgc?o=32385948&g=htcUserAli&i=../trash/hgSs/hgSs_genome_44ba_e972d0.pslx+..%2Ftrash%2FhgSs%2FhgSs_genome_44ba_e972d0.fa+YourSeq&c=chr1&l=32385948&r=32386166&db=hg19&hgsid=204152805282 "); uc2 = u2.openConnection(); InputStream …

Member Avatar for masijade
0
156
Member Avatar for gingerfish

is there any way to access some hyperlink on another webpage? the problem is that link always changes. thanks :)

Member Avatar for Shanti C
0
93
Member Avatar for gingerfish

hi :) i'm just wondering if there is any way to access to another website using my own? like: i have some input data and when i put it into the form of my website, it will search it in the another website's database and show me the result. i …

0
96
Member Avatar for gingerfish

i have this dataset: [CODE]String[][] trainData= { //featIdx////////classInfo {"s", "y", "r"},//0 {"s", "n", "r"},//1 {"w", "y", "r"},//0 {"r", "y", "p"},//0 {"r", "n", "r"},//2 {"r", "y", "p"},//0 {"w", "n", "p"},//0 {"w", "n", "r"},//3 {"w", "y", "r"},//0 {"s", "n", "r"}};//1 int[] trainClassInfo = {0, 1, 0, 0, 2, 0, 0, 3, 0, …

Member Avatar for gingerfish
0
917
Member Avatar for gingerfish

how to find out whether certain elements in an array are equal to one another? for this array: [icode]int array[] = {0, 1, 0, 0, 2, 0, 0, 3, 0, 1};[/icode] i wanna know if elements under the indexes 0, 1, and 9 are same numbers well the easy way …

Member Avatar for NormR1
0
208
Member Avatar for gingerfish

i know how to add many things into arraylist at once, like: [CODE] String [] things = {"eggs ", "pie ", "lasers ", "hat "}; List<String> list1 = new ArrayList<String>(); for (String x: things) list1.add(x); [/CODE] but is there a way to add things into arraylist iteratively one by one?

Member Avatar for JamesCherrill
0
138
Member Avatar for gingerfish

hey guys, when do we use "long"? and what is it anyway? like: [B] public [COLOR="Red"]long[/COLOR] someStuff([COLOR="Red"]long[/COLOR] n) { ..... ..... } [/B] thanks :)

Member Avatar for gingerfish
0
145
Member Avatar for gingerfish

hello programmers is it possible to extract some part of 2D array and make a new 1D array? for example from this array String[][] twoDarray= { {"s", "y", "r"}, {"s", "n", "r"}, {"w", "y", "r"}, {"r", "y", "p"}}; take first column of twoDarray[0] and make this `arrayString[] newArray = {"s","s","w","r"};` …

Member Avatar for gingerfish
0
790
Member Avatar for gingerfish

i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; …

Member Avatar for Ezzaral
0
185
Member Avatar for gingerfish

i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] …

Member Avatar for gingerfish
0
224
Member Avatar for gingerfish

i have this 2d array: String[][] testData= { {"s", "y", "r"}, {"s", "n", "r"}, {"w", "y", "r"}, {"s", "n", "r"} }; how can i count the occurrence of a particular element in the column of an array? for example i want to know how many "s" are in first column …

Member Avatar for gingerfish
0
3K
Member Avatar for gingerfish

here is my code: [CODE]//if any of errprLists is not equal to 0, then initialWieght equals newWeight if(errorList[0]!=0 || errorList[1]!=0 || errorList[2]!=0 || errorList[3]!=0) { for(int i=0; i<row; i++) { initialWeight[i] = newWeight[i]; } } //break the loop if all errors equal 0 //--------------------------------------------------------------------------- else if(errorList[0]==0 && errorList[1]==0 && errorList[2]==0 …

Member Avatar for gingerfish
0
165
Member Avatar for gingerfish

Hello I have a code here. it generates random 2d array [B]kMean[2][3][/B] and then this program calculates the distance between random generated [B]kMean[2][3][/B]s and [B]data[][][/B]. but the problem is, when the random kMean is 1, then it calculates the distance, but when the number or kMean becomes more than one, …

Member Avatar for gingerfish
0
130
Member Avatar for gingerfish

Please help me =( I'm not native english speaker, therefore some things might be not clear here I have 2 separate files: [B]Main.java[/B] and [B]Open.java[/B] inside [B]main.java[/B] there is a GUI and it has a [B]JTextArea[/B]) where i want to show text (variable) called from [B]open.java[/B] in [B]Main.java [/B] i …

Member Avatar for adams161
0
3K
Member Avatar for gingerfish

Hi How can i change my application default java icon with my own? The problem is that my frame dont have a name =( [CODE] ..... public Main() { super("PDB Viewer"); GLCapabilities caps = new GLCapabilities(); caps.setDoubleBuffered(false); canvas.addGLEventListener(new SecondGLEventListener()); canvas.addKeyListener(new SecondGLEventListener()); getContentPane().add(canvas, BorderLayout.CENTER); canvas.requestFocus(); initComponents(); pack(); setBounds( 150, 20, 800, …

Member Avatar for stultuske
0
237
Member Avatar for gingerfish

is it possible to write a text in a different font and color in one textarea ??:?: thanks in advance ^^

Member Avatar for jwenting
0
86
Member Avatar for gingerfish

Hi i have the following code, Single Perceptron: [CODE] import java.text.DecimalFormat; import java.text.NumberFormat; public class SinglePerceptron { double[][] patterns = { // input values (training data( { 0.958, 0.003}, { 1.043, 0.001}, {1.907, 0.003}, {0.780, 0.002}, {0.579, 0.001}, {0.003, 0.105}, {0.001, 1.748}, {0.014, 1.839}, {0.007, 1.021}, {0.004, 0.214}}; // {0.005, …

0
67
Member Avatar for gingerfish

Hello, i am a total newbie to jogl and java and i'm trying to use new JOGL package that consists: javax.media.opengl.*; when i write a code on netbeans, it doesnt show any error, but when i run the program the following error appears in the console: [COLOR="Red"] run: java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper …

0
67
Member Avatar for gingerfish

hello guys, could you please explain me when do we use these: int[][], double[][], float[][]? i mean, why there are two brackets "[]"? thanks

Member Avatar for gingerfish
0
61
Member Avatar for gingerfish

How to make so the new and old JOGL packages both work? :?: thanks :icon_cheesygrin:

0
82