title: Selection Sort in Java, ways I can improve the code?
body: <p>This is the code I have for my selection sort program, I want to know if there's any way of improving the code without using additional methods or classes. </p>
  
  <pre><code>public class Selection_Sort {
  
  
  public static void main(String[] args) {
  int arr[]={234,151,123,4,5342,76,48};
  int min=0; int temp;
  for(int i=0;i&lt;=arr.length-1;i++){
      min=i;
      for (int k=i+1;k&lt;arr.length;k++){
          if(arr[k]&lt;arr[i]){
              temp=arr[i];
              arr[i]=arr[k];
              arr[k]=temp;
          }
      }
  }
  for (int j=0;j&lt;=arr.length-1;j++)
      System.out.println(arr[j]+" ");
  
  }
  
  }
  </code></pre>