Click here to Skip to main content
15,794,347 members
Home / Discussions / Java
   

Java

 
AnswerRe: simple and basic Array Question Pin
Richard MacCutchan8-Jun-17 23:09
mveRichard MacCutchan8-Jun-17 23:09 
GeneralRe: simple and basic Array Question Pin
Member 125938659-Jun-17 2:57
Member 125938659-Jun-17 2:57 
GeneralRe: simple and basic Array Question Pin
Richard MacCutchan9-Jun-17 3:09
mveRichard MacCutchan9-Jun-17 3:09 
GeneralRe: simple and basic Array Question Pin
Member 125938659-Jun-17 6:30
Member 125938659-Jun-17 6:30 
GeneralRe: simple and basic Array Question Pin
Richard MacCutchan9-Jun-17 8:21
mveRichard MacCutchan9-Jun-17 8:21 
GeneralRe: simple and basic Array Question Pin
Member 125938659-Jun-17 8:41
Member 125938659-Jun-17 8:41 
GeneralRe: simple and basic Array Question Pin
Richard MacCutchan9-Jun-17 8:46
mveRichard MacCutchan9-Jun-17 8:46 
GeneralRe: simple and basic Array Question Pin
Member 125938659-Jun-17 10:34
Member 125938659-Jun-17 10:34 
ok thank you so much I would like to clear my point this time how about passing variable

Java
public class ArrayDemo
{
	public static void main(String[] args){
				
			int  a = 5;
			
			Try_Array Obj =new Try_Array();
 
			Obj.cool(a);
			
			System.out.println("A value After Calling:");
			
			 
	
				System.out.print(a );
			}
		 
 
}


Java
public class Try_Array
{
    
    public   void cool(  int a)
    {
        
           First_Array(a);
    	Second_Arra(a);
      
         
    }
 
    
    private   void First_Array(int a )
    {
        a=4;
        
        
 
    }
 
    private   void Second_Arra(int  a )
    {
    	  a=6;
    }
	 
}




the out put is :
Java
A value After Calling:
5


it' should be 6 ; but seam java ignore invocation with variable but java not behave like this with array

do you see my point when I pass array it got effect and back with different but when I send variable back nothing and it will not get effect or change the variable !
GeneralRe: simple and basic Array Question Pin
Richard MacCutchan9-Jun-17 23:08
mveRichard MacCutchan9-Jun-17 23:08 
GeneralRe: simple and basic Array Question Pin
Member 1259386510-Jun-17 8:25
Member 1259386510-Jun-17 8:25 
GeneralImplementing the Artificial Neural Network - Java Pin
Member 132411095-Jun-17 1:27
Member 132411095-Jun-17 1:27 
GeneralRe: Implementing the Artificial Neural Network - Java Pin
harold aptroot5-Jun-17 2:35
harold aptroot5-Jun-17 2:35 
GeneralRe: Implementing the Artificial Neural Network - Java Pin
Member 132411095-Jun-17 8:44
Member 132411095-Jun-17 8:44 
QuestionGeneric List and request.getParameterValues Pin
karengsh3-Jun-17 23:20
karengsh3-Jun-17 23:20 
AnswerRe: Generic List and request.getParameterValues Pin
Afzaal Ahmad Zeeshan5-Jun-17 9:28
professionalAfzaal Ahmad Zeeshan5-Jun-17 9:28 
AnswerRe: Generic List and request.getParameterValues Pin
Richard Deeming5-Jun-17 9:29
mveRichard Deeming5-Jun-17 9:29 
GeneralRe: Generic List and request.getParameterValues Pin
karengsh6-Jun-17 18:56
karengsh6-Jun-17 18:56 
GeneralRe: Generic List and request.getParameterValues Pin
Richard MacCutchan7-Jun-17 0:00
mveRichard MacCutchan7-Jun-17 0:00 
GeneralRe: Generic List and request.getParameterValues Pin
karengsh8-Jun-17 6:56
karengsh8-Jun-17 6:56 
GeneralRe: Generic List and request.getParameterValues Pin
Richard MacCutchan8-Jun-17 22:52
mveRichard MacCutchan8-Jun-17 22:52 
QuestionHelp with calling .length on an array Pin
m009le2-Jun-17 11:50
m009le2-Jun-17 11:50 
AnswerRe: Help with calling .length on an array Pin
Member 121394422-Jun-17 12:20
Member 121394422-Jun-17 12:20 
AnswerRe: Help with calling .length on an array Pin
Richard MacCutchan2-Jun-17 23:17
mveRichard MacCutchan2-Jun-17 23:17 
AnswerRe: Help with calling .length on an array Pin
jdferrell17-Jul-17 16:09
professionaljdferrell17-Jul-17 16:09 
Questionunable to pass array index value in the form of a variable in jsp and javascript Pin
a a nizami31-May-17 22:12
a a nizami31-May-17 22:12 

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.