Click here to Skip to main content
15,906,816 members
Home / Discussions / Java
   

Java

 
QuestionEnterprise application architecture Pin
Neo1010114-Aug-15 11:15
Neo1010114-Aug-15 11:15 
AnswerRe: Enterprise application architecture Pin
Richard MacCutchan14-Aug-15 20:51
mveRichard MacCutchan14-Aug-15 20:51 
GeneralRe: Enterprise application architecture Pin
Neo1010115-Aug-15 2:46
Neo1010115-Aug-15 2:46 
Questionhow to build 3d box Pin
Member 1189993511-Aug-15 5:56
Member 1189993511-Aug-15 5:56 
AnswerRe: how to build 3d box Pin
Richard MacCutchan11-Aug-15 6:20
mveRichard MacCutchan11-Aug-15 6:20 
GeneralRe: how to build 3d box Pin
Neo1010115-Aug-15 2:46
Neo1010115-Aug-15 2:46 
QuestionJava - Calculation in NEW array Pin
Frankie124511-Aug-15 5:36
Frankie124511-Aug-15 5:36 
AnswerRe: Java - Calculation in NEW array Pin
Richard MacCutchan11-Aug-15 6:15
mveRichard MacCutchan11-Aug-15 6:15 
Java
double[] square = myList[i]* myList[i];

... does not mean anything. you are trying to declare an array but without creating anything more than a number. Did you go through the tutorials I gave you the links for? They expalin how to create arrays, store and update the content, copy them to new arrays etc.

BTW what you need is:
Java
// create a new array of the correct size
double[] square = new double[myList.length];

// for each element in the original array
for (int i=0; i<myList.length; i++){
    // calculate the square of the value, and store
    // it in the appropriate cell of the array of squares.
    square[i] = myList[i] * myList[i]; // store th
}

QuestionDelimiters Pin
Member 107286679-Aug-15 10:58
Member 107286679-Aug-15 10:58 
AnswerRe: Delimiters Pin
Richard MacCutchan10-Aug-15 0:56
mveRichard MacCutchan10-Aug-15 0:56 
QuestionJava Bubble Sort Pin
Frankie12457-Aug-15 5:00
Frankie12457-Aug-15 5:00 
QuestionRe: Java Bubble Sort Pin
Richard MacCutchan7-Aug-15 6:21
mveRichard MacCutchan7-Aug-15 6:21 
AnswerRe: Java Bubble Sort Pin
Frankie12457-Aug-15 6:37
Frankie12457-Aug-15 6:37 
GeneralRe: Java Bubble Sort Pin
Richard MacCutchan7-Aug-15 21:09
mveRichard MacCutchan7-Aug-15 21:09 
GeneralRe: Java Bubble Sort Pin
Frankie12459-Aug-15 9:33
Frankie12459-Aug-15 9:33 
GeneralRe: Java Bubble Sort Pin
Richard MacCutchan10-Aug-15 0:54
mveRichard MacCutchan10-Aug-15 0:54 
GeneralRe: Java Bubble Sort Pin
Frankie124510-Aug-15 3:22
Frankie124510-Aug-15 3:22 
GeneralRe: Java Bubble Sort Pin
Richard MacCutchan10-Aug-15 3:34
mveRichard MacCutchan10-Aug-15 3:34 
Questioncennect unicenta with a phone problem Pin
Member 116403425-Aug-15 4:56
Member 116403425-Aug-15 4:56 
AnswerRe: cennect unicenta with a phone Pin
Richard MacCutchan5-Aug-15 5:23
mveRichard MacCutchan5-Aug-15 5:23 
QuestionJava Application Help - Inner Class? Pin
Member 1072866731-Jul-15 21:43
Member 1072866731-Jul-15 21:43 
AnswerRe: Java Application Help - Inner Class? Pin
Afzaal Ahmad Zeeshan2-Aug-15 1:55
professionalAfzaal Ahmad Zeeshan2-Aug-15 1:55 
QuestionJAVA SERVLETS and PHP Pin
anaQata31-Jul-15 5:10
professionalanaQata31-Jul-15 5:10 
AnswerRe: JAVA SERVLETS and PHP Pin
Richard MacCutchan1-Aug-15 22:10
mveRichard MacCutchan1-Aug-15 22:10 
GeneralRe: JAVA SERVLETS and PHP Pin
anaQata1-Aug-15 23:21
professionalanaQata1-Aug-15 23:21 

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.