Commit ce41b7b1 authored by P_Moonesi's avatar P_Moonesi

AP Workshop

parent c87cf1c5
Pipeline #1956 failed with stages
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="ProjectKey">
<option name="state" value="project://e2804f05-5315-4fc6-a121-c522a6c26470" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/untitled2.iml" filepath="$PROJECT_DIR$/untitled2.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<template>
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
</template>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="591b943c-ab8f-4e50-9dcb-c0a9c42860dd" name="Default Changelist" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ProjectId" id="1Xw7NJo0ZZxWwN171wwaZ2pjzYD" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RunManager">
<configuration name="Main" type="Application" factoryName="Application" temporary="true">
<option name="MAIN_CLASS_NAME" value="com.company.Main" />
<module name="untitled2" />
<option name="PROGRAM_PARAMETERS" value="mystring" />
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Run" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.Main" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="591b943c-ab8f-4e50-9dcb-c0a9c42860dd" name="Default Changelist" comment="" />
<created>1581945261108</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1581945261108</updated>
<workItem from="1581945265407" duration="2187000" />
<workItem from="1581948574041" duration="808000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="WindowStateProjectService">
<state x="223" y="68" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1581946734057">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="223" y="68" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1536.824@0.0.1536.824" timestamp="1581946734057" />
<state x="503" y="175" key="EnvironmentVariablesDialog" timestamp="1581946530335">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="503" y="175" key="EnvironmentVariablesDialog/0.0.1536.824@0.0.1536.824" timestamp="1581946530335" />
<state width="1493" height="210" key="GridCell.Tab.0.bottom" timestamp="1581947456592">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1493" height="210" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1581947456592" />
<state width="1493" height="210" key="GridCell.Tab.0.center" timestamp="1581947456592">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1493" height="210" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1581947456592" />
<state width="1493" height="210" key="GridCell.Tab.0.left" timestamp="1581947456592">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1493" height="210" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1581947456592" />
<state width="1493" height="210" key="GridCell.Tab.0.right" timestamp="1581947456592">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1493" height="210" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1581947456592" />
<state x="209" y="34" key="new project wizard" timestamp="1581947454794">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="209" y="34" key="new project wizard/0.0.1536.824@0.0.1536.824" timestamp="1581947454794" />
</component>
</project>
\ No newline at end of file
package com.company;
import java.awt.desktop.SystemSleepEvent;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = "Hastand";
int num1= scan.nextInt();
int num2= scan.nextInt();
for (int i=2;i<num1;i++){
if (num2%i==0 && num1%i==0) {
s = "Nistand";
}
}
System.out.print("Aval "+s);
}
}
<?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>
</module>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment