Notice
Recent Posts
Tags
- gpio
- 4bit parallel adder
- interface
- structure
- fast pwm mode
- MUX
- sequential logic circuit
- behavior modeling
- Method
- half adder
- dataflow modeling
- ctc mode
- 8bit timer/counter
- structural modeling
- Recursion
- normal mode
- java
- atmega 128a
- LED
- Set
- Linked List
- interrupt
- Algorithm
- timer / counter
- atmega 128
- Comparator
- behavioral modeling
- ATMEGA128A
- verilog
- full adder
목록call by value (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