Click here to Skip to main content
15,888,733 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 4:51
dusty_dex13-May-13 4:51 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 13:38
dusty_dex13-May-13 13:38 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 6:00
dusty_dex15-May-13 6:00 
GeneralRe: is it possible? Pin
Hakan Bulut15-May-13 7:51
Hakan Bulut15-May-13 7:51 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 8:45
dusty_dex15-May-13 8:45 
GeneralRe: is it possible? Pin
Hakan Bulut15-May-13 21:52
Hakan Bulut15-May-13 21:52 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 23:04
dusty_dex15-May-13 23:04 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 23:28
dusty_dex15-May-13 23:28 
The function is expected to return int

Java
public static int Random(int nu)


Any boolean test (== != > >= < <=) will give true/false answer, not the int.

That is your mismatch.

Java
public static int Random(int nu)
	{
                int see;
	    final int MAX_DATA = 49;
		nu = (int) Math.round(MAX_DATA * Math.random()+1);
		for(int j=0; j<MAX_DATA; j++)
		{
		    int[] arr = new int[MAX_DATA];
		    see = (int) (MAX_DATA != arr[j]);
                    // Hakan: This will not compile either
                    // but that is also what you are passing back from function.
		}
		//JOptionPane.showMessageDialog(null, "Randomize error!");
		return 0;
	}



GeneralRe: is it possible? Pin
Hakan Bulut15-May-13 23:52
Hakan Bulut15-May-13 23:52 
GeneralRe: is it possible? Pin
dusty_dex16-May-13 0:12
dusty_dex16-May-13 0:12 
GeneralRe: is it possible? Pin
Richard MacCutchan11-May-13 4:06
mveRichard MacCutchan11-May-13 4:06 
GeneralRe: is it possible? Pin
Hakan Bulut11-May-13 4:28
Hakan Bulut11-May-13 4:28 
GeneralRe: is it possible? Pin
Richard MacCutchan11-May-13 4:30
mveRichard MacCutchan11-May-13 4:30 
QuestionHow do I hide a column using JQuery? Pin
AshwiniRS7-May-13 23:35
AshwiniRS7-May-13 23:35 
AnswerRe: How do I hide a column using JQuery? Pin
walterhevedeich8-May-13 1:03
professionalwalterhevedeich8-May-13 1:03 
GeneralRe: How do I hide a column using JQuery? Pin
AshwiniRS8-May-13 2:07
AshwiniRS8-May-13 2:07 
GeneralRe: How do I hide a column using JQuery? Pin
Manfred Rudolf Bihy8-May-13 2:30
professionalManfred Rudolf Bihy8-May-13 2:30 
GeneralRe: How do I hide a column using JQuery? Pin
AshwiniRS8-May-13 20:34
AshwiniRS8-May-13 20:34 
AnswerRe: How do I hide a column using JQuery? Pin
Dennis E White8-May-13 4:37
professionalDennis E White8-May-13 4:37 
GeneralRe: How do I hide a column using JQuery? Pin
Jasmine25018-May-13 7:50
Jasmine25018-May-13 7:50 
GeneralRe: How do I hide a column using JQuery? Pin
AspDotNetDev8-May-13 8:17
protectorAspDotNetDev8-May-13 8:17 
GeneralRe: How do I hide a column using JQuery? Pin
Jasmine25018-May-13 8:42
Jasmine25018-May-13 8:42 
GeneralRe: How do I hide a column using JQuery? Pin
Ilan Firsov8-May-13 19:51
Ilan Firsov8-May-13 19:51 
QuestionHTML Table to Export To Excel Pin
shreeniwas kushwah6-May-13 20:06
shreeniwas kushwah6-May-13 20:06 
AnswerRe: HTML Table to Export To Excel Pin
Dennis E White7-May-13 5:18
professionalDennis E White7-May-13 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.