Dev Tech Blog
Blog about Java, Spring Boot, Hibernate, CSS, HTML, Interview questions and Programming
Labels
Angular
Annotation
CSS
ENUM
Exception
file
graphql
health check
HTML
interview questions
j2ee
java
Java Memory
JDBC
jdk
JPA
jre
jsp
jvm
lambda
Machine Learning
ML
monitoring
Multithreading
oops
Python
Security
server
Servlet
Singleton
Spring
Spring boot
String
Thread
tomcat
volatile
Sunday, October 11, 2015
Find matrix element in java
How to find Matrix index value using java
public
static
int
findElement(
int
x,
int
y) {
int
[][] matrix = { { 1, 2, 3 }, { 2, 3, 4 }, { 3, 4, 5 } };
return
matrix[x][y];
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment