Tags » Java

Sample Magic Square Pattern 3*3 with using formula

Program :
package myinnovation;

import java.util.Scanner;

/**
*
* @author kumaran
*/
public class MagicSquare3by3formula {
public static void main(String[] args) {

System.out.println(“Sample magic square pattern 3*3 with using formula \n\n Requested user to enter a number which is divisible by 3 \n\n”); 142 more words

Java

How to create a basic Spring MVC web

How to createa Spring MVC web application using maven. We will start from scratch creating the project with maven, then we will add some depencencies and create the java code. 2,140 more words

Java

Sample magic square pattern 3*3 without using formula

Program:

package myinnovation;

/**
*
* @author kumaran
*/
public class magicsquare {

/**
* @param args the command line arguments
*/
public static void main(String[] args) { 85 more words

Java

How to Create a TCP Client Server Socket example using Java

*****************************TCPSERVER***********************

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

class TCPServer {
 public static void main(String argv[]) throws Exception {
 ServerSocket ourFirstSocket = new ServerSocket(port);
 while (true) {

Socket connectionSocket = ourFirstSocket.accept();
 BufferedReader messagesFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
 String clientSentence = messagesFromClient.readLine();
 System.out.println("Received: " + clientSentence);
 }
 }
} 57 more words
Java

Coffee Lovers Only...

Oh the joys of savoring a hot or cold cup of java, mmmmm, mix in a little cream of any flavor you please and travel to a sweet place in your mind of relaxation and peace!   46 more words

Aspect Oriented Programming with Spring Boot

On a previous post I provided a simple example on how to achieve aspect orientation in spring by using a ProxyFactoryBean and implementing the MethodBeforeAdvice interface. 703 more words

Java

Has been long since last posting

It has been really long since I posted last time!

To come up with some excuses, I was really really really busy at my new workplace trying to absorb whole lot of information. 515 more words

Programming