-
First install Java, Scala and Spark in Ubuntu
- Install Java
sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
- Install Java
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 No3 { | |
| public static void main(String[] args) { | |
| Scanner input1 = new Scanner(System.in); | |
| System.out.println("masukkan kalimat :"); | |
| String kalimat = input1.nextLine(); | |
| char[] kata = kalimat.toCharArray(); | |
| char hurufDepan = kata[0]; | |
| char hurufBelakang = kata[kata.length-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
| #include <math.h> | |
| #include <GL/glut.h> | |
| #include <time.h> | |
| //#include <fstream.h> | |
| #include <stdarg.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| typedef struct { | |
| float v[3]; |
NewerOlder