Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Empty file.
Binary file added .gradle/7.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/7.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/7.1/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.1/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/7.1/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Tue Oct 19 15:09:47 AST 2021
gradle.version=7.1
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/checksums/checksums.lock
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
4 changes: 4 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/libraries/KotlinJavaRuntime.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fun main(){}
Binary file not shown.
Binary file added out/production/untitled/MainKt.class
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/kotlin/Main.kt → untitled/src/Main.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fun main(args: Array<String>) {


println("print your name")
println("Rakan Aljarallah")

}
16 changes: 16 additions & 0 deletions untitled/src/Week2/Maps-HW.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
fun main() {
// part |
val firstMap = mapOf<Int,Char>(0 to 'a',1 to 'b',2 to 'c',3 to 'd' ).toMutableMap() // creating map with 4 elements
firstMap += 4 to 'e' // adding new element
firstMap[0]= 'g' // editing the first key
firstMap -= 4 // remove the key and its entry




// part ||
val kosaList = listOf("rakan","mohammed","sultan")
kosaList.mapIndexed{index, item -> index.toString() to item } // puting numbered keys to the list and map it
val newMAp = kosaList.mapIndexed{index, item -> index.toString() to item }.toMap()

}
23 changes: 23 additions & 0 deletions untitled/src/Week2/Wed-bonus(nested-Loops).kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
fun main() {



for (row in 1..readLine()!!.toInt()) {
for (col in 1..row){
print("1*$col ")
}
println(" ")
}

}
fun testArray( ): Array<Array<Int>>{
val numberArray = Array(5) {
Array(5) { 0 }
}
for(row in 0..4){
for (col in 0..row){
numberArray[row][col]=1
}
}
return numberArray
}
12 changes: 12 additions & 0 deletions untitled/untitled.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
</component>
</module>
11 changes: 11 additions & 0 deletions untitled1/untitled1.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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>