<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdulla-kamal</title>
    <description>The latest articles on DEV Community by Abdulla-kamal (@abdullakamal).</description>
    <link>https://dev.to/abdullakamal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1438237%2Fb8344c73-3b92-428d-bb0d-a8c3119c4c23.jpeg</url>
      <title>DEV Community: Abdulla-kamal</title>
      <link>https://dev.to/abdullakamal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdullakamal"/>
    <language>en</language>
    <item>
      <title>A. Beautiful Matrix // Solution in java</title>
      <dc:creator>Abdulla-kamal</dc:creator>
      <pubDate>Sat, 20 Apr 2024 13:17:12 +0000</pubDate>
      <link>https://dev.to/abdullakamal/a-beautiful-matrix-solution-in-java-19j6</link>
      <guid>https://dev.to/abdullakamal/a-beautiful-matrix-solution-in-java-19j6</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import java.util.Scanner;

public class Problem {
    public static void main(String[] args) {
      Scanner input = new Scanner(System.in);
    int[][] nums = new int[5][5];
    for(int i = 0; i &amp;lt; nums.length; i++) {
    for(int j = 0; j &amp;lt; nums.length; j++) {
      nums[i][j] = input.nextInt();
    }
    }

    for(int i = 0; i &amp;lt; nums.length; i++) {
      for(int j = 0; j &amp;lt; nums.length; j++) {
        if(nums[i][j] == 1) {
          System.out.println(Math.abs(i-2) + Math.abs(j-2));
        }
      }
      }

    }
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
