Notice
Recent Posts
Tags
- Recursion
- 4bit parallel adder
- sequential logic circuit
- Comparator
- Linked List
- structure
- behavioral modeling
- ctc mode
- gpio
- interrupt
- interface
- Method
- dataflow modeling
- atmega 128a
- ATMEGA128A
- atmega 128
- verilog
- timer / counter
- Algorithm
- full adder
- java
- LED
- fast pwm mode
- structural modeling
- 8bit timer/counter
- behavior modeling
- MUX
- Set
- normal mode
- half adder
목록call by reference (1)
거북이처럼 천천히
Java - call by value & call by reference
문제점 발생 목표 : n개 정수를 입력받아 배열에 저장한 뒤, 버블정렬(Bubble sort) 알고리즘을 이용하여 오름차순 정렬후, 출력 import java.util.Scanner; public class programming { public static void swap(int a, int b) { int tmp = a; a = b; b = tmp; } public static int[] sortAscending(int[] data, int size) { for(int j=size-1; j>0; j--) for(int k=0; kdata[k+1]) { swap(data[k], data[k+1]); } return data; } public static void main(String[] args) { ..
Back-end/Java 개념
2022. 6. 21. 01:09