Skip to content

Instantly share code, notes, and snippets.

View alagalia's full-sized avatar

Галя Георгиева alagalia

View GitHub Profile
package myPackage;
import java.util.Scanner;
public class Problem1RectangleArea {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
package JavaSyntax;
import java.util.Scanner;
public class Problem1RectangleArea {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
import java.util.Scanner;
public class problem6_Sum_Two_Numbers {
public static void main(String[] args) {
Scanner scaner = new Scanner(System.in);
int a = scaner.nextInt();
int b = scaner.nextInt();
int sum = a + b;
System.out.println(sum);
}
public class Problem3_Print_Your_Hometown {
public static void main(String[] args) {
System.out.println("Hello I am from Javaland!");
}
}
public class Problem3_Print_Your_Hometown {
public static void main(String[] args) {
System.out.println("Hello I am from Javaland!");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
public class Problem3_Print_Your_Hometown {
public Problem3_Print_Your_Hometown() {
}
public static void main(String[] var0) {
public class Problem3_Print_Your_Hometown {
public static void main(String[] args) {
System.out.println("Hello I am from Javaland!");
}
}
@alagalia
alagalia / Problem 3.Paths
Created June 6, 2015 17:06
Defining Class to collect a List<OnotherClass>
using _01Point3D;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Path
{
class PathMain
@alagalia
alagalia / 02 Sort Array.cs
Last active August 29, 2015 14:20
02 Sort Array
using System;
using System.Linq;
class Program
{
static void Main()
{
int[] nums = Console.ReadLine().Split().Select(int.Parse).ToArray();
while (true)
{
bool check = false;