Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Nitish Mittal
Greenhorn
+ Follow
6
Posts
4
Threads
0
Cows
since Jun 24, 2012
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (6/100)
Number Threads Started (4/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (6/10)
Number Threads Started (4/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Nitish Mittal
code showing some arbitrary value
package practise; import java.io.*; import java.util.Scanner; public class Practise { public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter the size of array"); Scanner in= new Scanner(System.in); int k = in.nextInt(); int[] arr = new int[k]; for(int i=0;i<k;i++) { arr[i] = br.read(); System.out.println("the no is " +arr[i]); } } }
Hey I am using this code but it is showing taking some arbitrary value and I am not able debug the problem. Please help me with this code.
show more
10 years ago
Beginning Java
How to compare to char array inside while loop
I found my mistake thank you
show more
11 years ago
Java in General
How to compare to char array inside while loop
Array index out of bounds
show more
11 years ago
Java in General
How to compare to char array inside while loop
package practise.in; import java.util.Scanner; public class MatchingString { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); String s= in.nextLine(); char[] c; c= s.toCharArray(); // System.out.print(c[1]); int[] k = new int[s.length()]; int j=0; int i=0; int m=0; if(m<s.length()) { j=m; while(c[i]==c[j]) { k[m]++; i++; j++; } m++; i=0; } for(int l=0;l<s.length();l++) { System.out.println(k[l]); } } }
show more
11 years ago
Java in General
displaying output of functions
<%@ page import = "com.irlab.ri.*" %> <%@ page import="java.io.*" %> <html> <head> </head> <body> <% String z = " new file "; word w = new word(); int wcount = w.wordCount(z); %> <%= "wcount" %> hello!!! </body> </html>
I have included the JAR file in WEB-INF/lib folder but not able to display the content stored in
wcount.
please help me with code
show more
11 years ago
JSP
File uploading using JSP and Servlets
How to read a uploaded file using jsp and passing it to own made methods and function in JSP?
show more
11 years ago
JSP