Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Adithya Bhat
Greenhorn
+ Follow
9
Posts
2
Threads
0
Cows
since Nov 06, 2009
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 (9/100)
Number Threads Started (2/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 (9/10)
Number Threads Started (2/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 Adithya Bhat
Returning if a number is prime. (Chapter on Objects and classes. OOP)
To check if number n is prime or not,see if it is divisible by numbers ranging from 2 to n/2.If it is divisible then it is not prime.
show more
14 years ago
Beginning Java
int to hex
Thank you John.
Adithya.
show more
14 years ago
Beginning Java
int to hex
But this doesn't store hex value in int,it stores in string.
Then how come this following code is valid???
int[][] data = new int[][]{{0x5a0060, 0x6a0050, 0x6a0050, 0x6a0050, 0x7f0038}, {0x5a0060, 0x6a0050, 0x6a0050, 0x6a0050, 0x7f0038}}
show more
14 years ago
Beginning Java
int to hex
Thank you guys for responding.
John i need it to be stored as hex.
And Rok this converts int to hex what about 0x prefix.
System.out.println(y);
i want its output to be 0x620058.
show more
14 years ago
Beginning Java
int to hex
I have an integer
int x=6422616;
I need to convert this integer into hex and store it in y in 0x format
i.e int y=0x620058; (here 620058 is hex equivalent of 6422616).Can you please tell me how to do it???
show more
14 years ago
Beginning Java
NullPointerException
Thanks Campbell,now i get what you are saying.
show more
14 years ago
Beginning Java
NullPointerException
Thank you guys,code's working now.
But i don't get what Campbell is saying.
show more
14 years ago
Beginning Java
NullPointerException
Hello guys i was working with multidimensional array and when i try to execute this following program i get this error.Can you guys please help me with this one.
java.lang.NullPointerException
at blur.copy(blur.java:15)
at blur.main(blur.java:30)
class multi { public int[][] data; int row; int column; } public class blur { public multi copy(multi i){ multi res=new multi(); res.row=i.row; res.column=i.column; for(int x=0;x<i.row;x++){ for(int y=0;y<i.column;y++){ res.data[x][y]=i.data[x][y]; } } return res; } public static void main(String args[]){ try{ multi i=new multi(); i.row=2; i.column=2; i.data=new int[][]{{1,2},{3,4}}; blur obj=new blur(); multi r=obj.copy(i); for(int x=0;x<r.row;x++){ for(int y=0;y<r.column;y++){ System.out.print(r.data[x][y]+","); } System.out.println(); } } catch(Exception e){ e.printStackTrace(); } } }
show more
14 years ago
Beginning Java
Game for Nokia E71x
you can refer to this site for complete detail about hello world app
http://jmeworld.webs.com/
show more
14 years ago
Java Micro Edition