• Post Reply Bookmark Topic Watch Topic
  • New Topic

the methods do not print  RSS feed

 
reinol diaz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all that prints is "The numbers in ascending order are : 6 98 234"




 
Joris Bolsens
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are only calling the swap(x,y,z) method and nothing else. to call the other ones, add them to your main like this:

 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you know swap will swap only its local copies of x,y,z and not the ones in main, don't you?




 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>java swap
0 1 2
98 234 6


 
Ramesh Pramuditha Rathnayake
Ranch Hand
Posts: 178
2
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
reinol diaz wrote: all that prints is "The numbers in ascending order are : 6 98 234"
...


Actually, what is the problem you got here..??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!