This file contains hidden or 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
import java.util.Scanner; | |
public class Siffra { | |
public static void main(String[] args) { | |
Scanner myScanner = new Scanner(System.in); | |
String string0; | |
System.out.print("Skriv in en sträng: "); | |
string0 = myScanner.next(); | |
This file contains hidden or 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
import java.util.Scanner; | |
public class Ordning { | |
public static void main(String[] args) { | |
Scanner myScanner = new Scanner(System.in); | |
String string0, string1, string2; | |
System.out.print("Skriv in en sträng: "); | |
string0 = myScanner.next(); | |
System.out.print("Skriv in en sträng: "); |
This file contains hidden or 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
import java.util.Scanner; | |
public class Ordning { | |
public static void main(String[] args) { | |
Scanner myScanner = new Scanner(System.in); | |
String string0, string1, string2; | |
System.out.print("Skriv in en sträng: "); | |
string0 = myScanner.next(); | |
System.out.print("Skriv in en sträng: "); |
This file contains hidden or 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
import java.util.Scanner; | |
public class Ordning { | |
public static void main(String[] args) { | |
Scanner myScanner = new Scanner(System.in); | |
String string0, string1, string2; | |
System.out.print("Skriv in en sträng: "); | |
string0 = myScanner.next(); | |
System.out.print("Skriv in en sträng: "); |
This file contains hidden or 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 ReverseArray { | |
public static void main(String[] args) | |
{ | |
double[] array = new double[4]; | |
array[0] = 5.0; | |
array[1] = 1.1; | |
array[2] = 3.2; | |
array[3] = 2.3; | |
This file contains hidden or 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
import java.io.*; | |
public class Frastrad { | |
public static void main(String[] args){ | |
try { | |
BufferedReader reader = | |
new BufferedReader(new FileReader(args[0])); | |
BufferedWriter writer = | |
new BufferedWriter(new FileWriter(args[1])); |
This file contains hidden or 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
→ brew install git | |
==> Downloading http://git-core.googlecode.com/files/git-1.7.11.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/git-1.7.11.tar.gz | |
==> make prefix=/usr/local/Cellar/git/1.7.11 CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 LDFLAGS= install | |
==> make CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 LDFLAGS= | |
/usr/bin/llvm-gcc -c -Os -w -pipe -march=core2 -msse4 git-credential-osxkeychain.c | |
git-credential-osxkeychain.c:4:31: error: Security/Security.h: No such file or directory | |
git-credential-osxkeychain.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘protocol’ | |
git-credential-osxkeychain.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘port’ | |
git-credential-osxkeychain.c:50: error: expected ‘)’ before ‘item’ |
This file contains hidden or 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
class WordNgram{ | |
private int size; | |
private String[] words ={}; | |
public WordNgram(int size){ | |
this.size = size; | |
} | |
public WordNgram(int size, String words){ | |
this.size = size; |
This file contains hidden or 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
class WordNgram{ | |
private int size; | |
private String[] words ={}; | |
public WordNgram(int size){ | |
this.size = size; | |
} | |
public WordNgram(int size, String words){ | |
this.size = size; |