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
# File path: /etc/nginx/sites-available/default | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /home/ubuntu/ProjectBravo/smartschool/dist; | |
location /api { | |
proxy_redirect off; | |
proxy_pass http://localhost:8080; |
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
package com.company; | |
public class Main { | |
public static void main(String args[]) { | |
for (int i = 1; i < 10; i++) { | |
for (int j = 1; j < 10; j++) { | |
if (i < j) { | |
System.out.print(" # "); | |
} else { | |
System.out.print(i*j + " "); |
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
package com.company; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
System.out.println("Введіть розмірність масиву m*n:"); | |
int m = scan.nextInt(); | |
int n = scan.nextInt(); | |
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
package com.company; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int n = scan.nextInt(); | |
int sum = 0; | |
for(int i=0;i<=n;i++){ |
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
package com.company; | |
public class Main { | |
public static void main(String args[]){ | |
int i, j, a=0; | |
for(i = 1; i < 10; i++){ | |
for(j = 1; j < 10; j++) { | |
a = i*j; |
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 Ex6 { | |
public static void main(String... args){ | |
for(int i = 1; i < 10; i++){ | |
for(int k = 1; k < 10; k++){ | |
System.out.print(k * i + "\t"); | |
} | |
System.out.println(); | |
} | |
} | |
} |
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 Ex5 { | |
public static void main(String[] args) { | |
int n = 15; | |
int m = 3; | |
for (int i = 1; i <= n; i++) { | |
if (i % m == 0) { | |
System.out.print(i + " "); | |
} | |
} |
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 Ex2 { | |
public static void main(String[] args) { | |
final int COUNT = 7; | |
String s = "I will adopt best practices"; | |
for (int i = 0; i < COUNT; i++) { | |
System.out.println(s); | |
} | |
} | |
} |
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 Ex1 { | |
public static void main(String args[]) { | |
int a = 4; | |
System.out.print(a); | |
if (a % 2 == 0) { | |
System.out.println(" is Even number"); | |
} else { | |
System.out.println(" is Odd number"); | |
} |
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
сложн ( ̄ー ̄) |
NewerOlder