Click here to Skip to main content
15,889,595 members
Home / Discussions / Java
   

Java

 
AnswerRe: How to use setters and getters. Pin
Richard MacCutchan23-Feb-16 21:26
mveRichard MacCutchan23-Feb-16 21:26 
GeneralMessage Closed Pin
25-Mar-20 19:16
Sherin_Mathew25-Mar-20 19:16 
GeneralRe: How to use setters and getters. Pin
Richard MacCutchan25-Mar-20 21:29
mveRichard MacCutchan25-Mar-20 21:29 
GeneralRe: How to use setters and getters. Pin
OriginalGriff16-Apr-20 0:06
mveOriginalGriff16-Apr-20 0:06 
GeneralRe: How to use setters and getters. Pin
Richard MacCutchan16-Apr-20 0:43
mveRichard MacCutchan16-Apr-20 0:43 
QuestionHow to fetch the data from pos to my application Pin
Vandip11-Feb-16 12:22
Vandip11-Feb-16 12:22 
AnswerRe: How to fetch the data from pos to my application Pin
Richard MacCutchan11-Feb-16 21:10
mveRichard MacCutchan11-Feb-16 21:10 
QuestionDouble variable and array working in java Pin
Indan10-Feb-16 7:18
Indan10-Feb-16 7:18 
I am unable a to understand a concept. double variable and double array are declared outside the function and a function which increments the value of both is made. Values from the functions are not returned still the value of the double array gets incremented where as it is not the same case with double variable. Why ? Same with Double class

Java
 double x = 100.5;
 p.m1( x );
 System.out.println("" + x);
 double[] xa1 = {10,20,30,40};
 //p.m5( xa1 );
 for (int i=0;i<4;i++){
     System.out.println(xa1[i]);
 }

 public void m1(double a) {
   a += 100;
 }

 public void m5(double[] x) {

 for(int i=0; i < x.length; i++)
     x[i] += 100;

}

OUTPUT : 100.5

110.0 120.0 130.0 140.0
AnswerRe: Double variable and array working in java Pin
jschell12-Feb-16 12:35
jschell12-Feb-16 12:35 
Questionhow to use selenium webdriver with existing firefox browser Pin
neodeaths3-Feb-16 5:38
neodeaths3-Feb-16 5:38 
Questionusing "while" reverse the digits of the number in java? Pin
Member 123033992-Feb-16 8:05
Member 123033992-Feb-16 8:05 
AnswerRe: using "while" reverse the digits of the number in java? Pin
Richard Andrew x642-Feb-16 8:15
professionalRichard Andrew x642-Feb-16 8:15 
GeneralREPOST Pin
Sascha Lefèvre2-Feb-16 8:28
professionalSascha Lefèvre2-Feb-16 8:28 
Questionget the context path in jsp Pin
Member 1026351929-Jan-16 21:27
Member 1026351929-Jan-16 21:27 
Generaljava Pin
Hiren Akbari27-Jan-16 5:49
professionalHiren Akbari27-Jan-16 5:49 
QuestionRe: java Pin
Richard MacCutchan27-Jan-16 6:28
mveRichard MacCutchan27-Jan-16 6:28 
GeneralRe: java Pin
iskSYS24-Feb-16 22:09
professionaliskSYS24-Feb-16 22:09 
Questionhow to read large 8gb json text file in java program Pin
Member 1216598526-Jan-16 19:02
Member 1216598526-Jan-16 19:02 
AnswerRe: how to read large 8gb json text file in java program Pin
Richard MacCutchan26-Jan-16 22:35
mveRichard MacCutchan26-Jan-16 22:35 
AnswerRe: how to read large 8gb json text file in java program Pin
markkuk27-Jan-16 1:43
markkuk27-Jan-16 1:43 
QuestionHow to using jena lib with rdf for semantic web. Pin
Fatih Khoirul Umam19-Jan-16 14:14
Fatih Khoirul Umam19-Jan-16 14:14 
SuggestionRe: How to using jena lib with rdf for semantic web. Pin
Richard MacCutchan19-Jan-16 23:15
mveRichard MacCutchan19-Jan-16 23:15 
QuestionAs regards the voice chat in spark im. Pin
superman_kgy16-Jan-16 4:41
superman_kgy16-Jan-16 4:41 
AnswerRe: As regards the voice chat in spark im. Pin
Richard MacCutchan16-Jan-16 4:44
mveRichard MacCutchan16-Jan-16 4:44 
Questionhow to calculate 4 year degree completed data in resume Pin
Member 1216598516-Jan-16 0:34
Member 1216598516-Jan-16 0:34 

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.