This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
static ArrayList<int[]> myArrayList = new ArrayList<int[]>(); | |
public static void main(String[] args) { | |
myArrayList.add(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9}); | |
myArrayList.add(new int[]{9, 8, 7, 6, 5, 4, 3, 2, 1}); | |
PrintInts(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates | |
and open the template in the editor. | |
--> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates | |
and open the template in the editor. | |
--> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import com.sun.org.apache.regexp.internal.RE; | |
import java.io.*; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) throws IOException, ClassNotFoundException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Recipe implements Serializable { | |
public String title; | |
public String indgredients; | |
public String text; | |
public Recipe(String title, String ingredients, String text) | |
{ | |
this.indgredients = ingredients; | |
this.text = text; | |
this.title = title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.awt.*; | |
public interface Drawable { | |
void draw(Graphics2D graphics2D) throws InterruptedException; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.ArrayList; | |
public class Drawing extends JFrame{ | |
private ArrayList<Drawable> drawables = new ArrayList<Drawable>(); | |
public Drawing() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.ArrayDeque; | |
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
String[] messy = {"Mikkel", "Ebbe", "Liv"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.Arrays; | |
/** | |
* Created by ev on 09-03-2016. | |
*/ | |
public class GenericSort<T extends Comparable> { | |
public T[] bubblesort(T[] array) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Collections; | |
public class Main { | |
public static void main(String[] args) { |
OlderNewer