User Profile

Collapse

Profile Sidebar

Collapse
ManidipSengupta
ManidipSengupta
Last Activity: Oct 1 '08, 04:09 PM
Joined: Sep 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ManidipSengupta
    replied to Need help on counting
    in Java
    Have you thought about using arrays? Here you go -

    Code:
    import java.util.Scanner; 
      
    public class Sudoku4 { 
    	protected	int	n=4, checkSum=10, failCount=0;
    	protected	Scanner	input = new Scanner(System.in);
    
    	public Sudoku4 () {
    		int[][] a = new int[n][n];
    		for (int iRow = 0 ; iRow < n ; iRow++) {
    			System.out.print ( "Enter Row #"+(iRow+1)+ ": ");
    ...
    See more | Go to post

    Leave a comment:


  • ManidipSengupta
    replied to Using variable from aother method
    in Java
    Hi ragonz, I am no expert, but will try to answer your question, along with a few suggestions. The suggestions are my honest opinion only.



    Suggestions:
    1. Do not use function/method names like run() , it has special meaning in threads.
    2. Try to design the class in an object oriented fashion - do not declare arbitrary inner classes if not necessary
    3. Do not use standard awt class names like M...
    See more | Go to post

    Leave a comment:


  • ManidipSengupta
    started a topic Javascript-Applet-Servlet Comunication

    Javascript-Applet-Servlet Comunication

    Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in advance for responding. I have made a stub of the codes for better understanding.

    Situation: I have a Java servlet (HelloWorldServ let) running on a Tomcat (5.5.26) server on a Linux machine (compiled in JDK1.4.2). It writes Javascript to...
    See more | Go to post
No activity results to display
Show More
Working...