Comment

Amrit Meena
problem,
January 29, 2009 at 2:32 AM

Write a java program to initialize 3 characters, and print the decimal value when the input is interpreted as a 3-digit hexadecimal number. Accept upper case letters for values from 10 to 15 i.e. 'A' represents 10, 'B' represents 11, etc. Also check for invalid input. Do not use any library/built-in function. Suppose you declare three char variables a, b and c and initialize them to be 'A', '2' and 'D' respectively, then assume the hexadecimal number to be A2D.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Programming Tutorials

index
Programming Tutorials : Many Free Programming tutorials Many links to the online programming tutorials. These programming tutorial links will help you in increasing your programming skills.  

Java Interview Questions

array, index, string
array, index, string  how can i make dictionary using array...please help 

Java Beginners

index - Java Beginners
index  Hi could you pls help me with this two programs they go hand in hand. Write a Java GUI application called Index.java that inputs several lines of text and a search character and uses String method indexOf to determine 

Java Beginners

please help me to this problem..
please help me to this problem..  i wrote a program like keyboard and i used [JTextFiled] means that just you can write inside the program (i.e inside the JTextField) but i want to make this program to let me write where i 

Java Interview Questions

problem
problem  hi'sir mai niit student hu.mujhe java ka program samaj me nhi aata mai kya karu and mai kaise study karu please help me.   Learn Java from the given link: Java Tutorials 

Java Beginners

help me to solve this problem..
help me to solve this problem..  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //book‚??s title double price; //book‚??s price 

Java Beginners

Help!
Help!  thanks for ur code, I'd like to ask a question: after press "c" or "C", timer starts and after every delay ms, it'll print "This line... once.   oh, I see my problem. Thanks 

Java Beginners

including index in java regular expression
including index in java regular expression  Hi, I am using java regular expression to merge using underscore consecutive capatalized words e.g....); } } Looking forward for your help... Thanks YJS 

Ajax Questions

PLEASE HELP CAPTCHA PROBLEM
PLEASE HELP CAPTCHA PROBLEM  how can i make the captcha refresh autometically ???? please help this is <%@ Page Language="C#" %> <%@ Import Namespace="System.Drawing"%> <%@ Import Namespace 

Java Interview Questions

help
, you are asked to make changes in the existing class. Problem: Open the class ‚.... Problem: ‚?Ę Modify the project to create user interface. Your program should... based on the percentage of cheating. please help me 

General

Index Out of Bound Exception
Index Out of Bound Exception       Index Out of Bound Exception  are the Unchecked Exception... the compilation of a program. Index Out of Bound Exception Occurs  when 

Java Beginners

Help me on the given problem of String
Help me on the given problem of String  class Test { string s1="Hello",s2="lo"; System.out.println((s1=="Hel"+"lo")); System.out.println((s1=="Hel"+lo)); } The above program prints true 

PHP Questions

Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok... This Problem With If...Else If...Else Statement But When the More Team Are There Then It's Large Codding So I Need To Help To Another Way To Do 

Java Beginners

Insertion Sort Problem
. It is supposed to be an insertion sorter: int min, index=0, temp; for(int i=0;i<...;sorted.length;j++){ if(sorted[j]<min){ index=j; min=sorted[j]; } } temp=sorted[index 

Java Beginners

please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always 

JavaScript Questions

i need help to solve this problem
i need help to solve this problem  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order. and Show step by step what queue will look like 

SQL Question

What is Index?
What is Index?  What is Index 

JSP Servlet Questions

Form Processing Problem
the index of file pos = file.indexOf("filename...; <% } %> </table> </html> The problem while... inputs taken. Kindly help me, to take unique inputs from forms and the inputs 

PHP Tutorial

PHP Basics Tutorial Index
PHP Basic Tutorial: Learn the Basics of PHP scripting through our PHP Basic Tutorial series. The PHP Basic Tutorial is design for new programmers who want to learn the PHP program ASAP. These tutorials will help you grasping the PHP 

Framework Questions

facing problem plz help me out - Framework
Facing problem plz help me out  hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet 

JSP Interview Questions

problem in writing coding. Please help me.
problem in writing coding. Please help me.  Hi sir, my name is Logeswaran. I have problem in writing JSP coding for my university assigments... like? I'm really stuck on this. Please help me. By the way, I'm using Access 

Java Beginners

Regular Expression Help Help HELP!!!!
Regular Expression Help Help HELP!!!!  HI all I am very new to java, but i have this problem i got a string e.g Courses['07001'].Title... *= *\"([^\"]+)\";"; But the problem now is, say i got string like Courses 

Struts Questions

Struts2 Helloworld problem -Please help - Struts
. Please help me out in resolving this problem and provide me a pointer...Struts2 Helloworld problem -Please help  Hi I am a beginner... problem I unable to execute the program successfully. Please find my example 

Java Beginners

Help with cypher and key problem in Java - Java Beginners
Help with cypher and key problem in Java  So far I have a program that asks a user for a message and a key amount and displays an encrypted message which is obtained by shifting the each character according to the key amount 

Java Beginners

problem on strings
problem on strings  in string1 "123456 ABC DEF...",IN string2 "raveen". iwant to add string2 after 123456 in the first string based on index number.i need logic for this with out using StringBuffer concept. Thanks in advanace 

Java Beginners

Java Compilation Problem - Java Beginners
upto 208th index. while compiling it is showing that ']' is expected at author[210] declaration. can you help regarding this. thanking you, vasavi  

Framework Questions

facing problem plz help me out - Framework
 

Adobe Flex

Adobe Flex Component Index
components have it's own importance. With the help of the components we can get a rich look in the web site as well as with the help of various validators we can put validations on different field so easily and effectively. Index of Flex 

JSP Servlet Questions

problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me 

Java Beginners

Help With an Array
Help With an Array  So what Im trying to do is write an array... not figure out how to finish the code. Please HELP! A) students? names... : " + names.length); for (int index = 0; index < names.length; index 

Java Beginners

index of javaprogram
index of javaprogram  what is the step of learning java. i am not asking syllabus am i am asking the step of program to teach a pesonal student.   To learn java, please visit the following link: Java Tutorial 

Development process Questions

javascript problem
enter please help me this problem...javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter 

Java Beginners

Search index
 

Java Beginners

Java, CSS help - Java Beginners
Java, CSS help  I need help about menu and submenu programming? Hi..., but the problem is how can I keep active bout main menu link and submenu link at the same... { position: absolute; z-index: 500; } #menu1 ul ul ul { position: absolute 

Hibernate Questions

I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I... and finding it difficult to configure the file.. Can you please help me.. Thanks 

JSP Servlet Questions

Problem with cookies
Problem with cookies  Hello All, i need jsp code for RememberMe module of login. i am facing problem with cookies. so please if any one could guide me please help and provide mme the exact code.   Please visit 

PHP Questions

problem on php
problem on php   l have five tables and build them as forms and link between them php and database and i want to build query between them plz help me soon   PHP MySQL Tutorials 

Java Beginners

Problem in Array
Problem in Array  Hi, Can you help me with this problem? Run a program that check if the input string contains equal number of A's and B's. Hoping... you so much for quick response.very big help 

HTML Questions

problem in html
problem in html  i want that my custmer can upload file or video on my website so plz help and send me the code which i can paste on my web site so people can upload their video and img and plz send the html code becaz my web 

Java Beginners

help me
arrives first will park in a hole with small index number , and the follows will park in a hole with a larger index... and so on. moreover, the car parking gates... help me 

Java Beginners

Skyline Problem
is the line tracing the largest y value from any rectangle in S The Problem: Write.... Your method should solve the problem three different ways; each solution... p, Building [] cityscape); } Blockquote Any help would be very much 

Programming Tutorials

Drop Index
Drop Index       Drop Index is used to remove one or more indexes from the current database. Understand with Example The Tutorial illustrate an example from Drop Index 

JSP Interview Questions

help me
help me  Hi I'm loges. I'm doing my final year project now, I have some problem in my project and i need some help on it. NowI'm doing a site...,and course taking. I have problem on how to insert the value of gender 

JSP Servlet Questions

Problem in jsp.
Problem in jsp.  hello friends, I have a problem in jsp.I want to insert data, which is given by user through a html page into a table.And the table name also is given by the user.My database is in mysql.Plsssss help me... Thanks 

JSP Servlet Questions

Problem in jsp.
Problem in jsp.  hello friends, I have a problem in jsp.I want to insert data, which is given by user through a html page into a table.And the table name also is given by the user.My database is in mysql.Plsssss help me... Thanks 

JSP Servlet Questions

Problem in jsp.
Problem in jsp.  hello friends, I have a problem in jsp.I want to insert data, which is given by user through a html page into a table.And the table name also is given by the user.My database is in mysql.Plsssss help me... Thanks 

Java3D Questions

help in java
help in java  Write an application that prompt the user to enter a number to use as an array size, and then attempt to declare an array using.... At the end of your program ask the user to enter the index of the array to display 

Struts Questions

struts problem ... need help urgently.. please reply ASAP
struts problem ... need help urgently.. please reply ASAP  Hi Every1, I want to make an application using struts 1.2. I am a beginner on struts. Dont know much about struts. In application I have to make jsp to get some 

JSP Servlet Questions

display records with images problem - JSP-Servlet
). can anybody help me please, urgent. below is my codes: servlet...); int index=readImg.read(rb, 0, len); System.out.println("index"+index); st1.close(); response.reset 

JSP Servlet Questions

Jsp problem
Jsp problem  Hello friends.I want to share my jsp problem.I want to show all of my database(mysql) tables except two(user,manufacturer) in a jsp page.plssss help me 

Java Beginners

Assignment problem
Assignment problem  hello, I am designing a program partaining job assingment using hungarian algorithm,but i am totally confused, please help me out 

JSP Servlet Questions

uploading problem
(); } } } } %> my problem...: firstly.... then problem solved... bt real problem is when i upload files fusing mozilla browser...it shows like this... problem loading page.. The connection was reset 

JDBC Questions

jdbc problem
jdbc problem   hi my name is mohit...i am making a project in java swings....pls help me how to check that the username and password are correct... in the database....pls help me guys...i am new to java...pls help me learn... thanks 

Java Beginners

Servlet problem
problem from last three month and now i hope rose india developers will definitely help me. I built a web application using jsp, servlets . My web application... connectivity code it works but problem is with servlet page. My servlet code 

JavaScript Questions

i have a problem to do this question...pls help me..
i have a problem to do this question...pls help me..  Write a program that prompts the user to input an integer and the output the number with the digits reversed. For example if the input is 12345, the output should be 54321 

Java Beginners

plz help me out with this problem...please write the program for me.thanxxxxx
plz help me out with this problem...please write the program for me.thanxxxxx  Write a program that will print out a hydro bill. The bill will be formatted as the example on the next page. The following information 

Java Beginners

plz help me out with this problem...please write the program for me.thanxxxxx
plz help me out with this problem...please write the program for me.thanxxxxx  Write a program that will print out a hydro bill. The bill will be formatted as the example on the next page. The following information 

JSP Servlet Questions

java Problem
java Problem  I want to create a binary tree for displaying members in Downline. i am creating a site for MLM(Multi-Level MArketing). tree must be dynamically populated from database. is there any help for me. Thanks in advance 

JSP Servlet Questions

Confirm problem
Confirm problem  Sir i have used following code in button delete onclick="if (confirm('sure?')) submit();" and if i choose cancel it still submits the form however if choose cancel i want to remain on same jsp page please help 

Java Beginners

Need help with this!
Need help with this!  Can anyone please help me... to a file at all at this time. Any help would be greatly appreciated, thank you... assignmentTestInt, test; int searchNumberInt, searchLoop, index; int 

Java Interview Questions

Need help
Need help  Dear sir, I have a problem. How to write JSP coding, if a user select a value from drop down list for example department, the another drop.... This name list should get from the database. Please help me. By the way, I'm 

JSP Servlet Questions

jsp problem
jsp problem  problem:::::::: On JSP form ,when i insert data in text field........at that time action is perform and data is retriev from data base... but i want that data on form plz help me...........   Hi Friend, Use 

Hibernate Questions

hibernate problem
hibernate problem  please help me.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Exception in thread "main 

Java Beginners

population problem plz help me befor 16 March 2011 !!
population problem plz help me befor 16 March 2011 !!  the Q is : How can i count how many years it will take for the population of a town to go over 30.000 .. consider that it Increases 10% every year ?? And this is my code & 

JSP Servlet Questions

jsp problem
to the viewer. how to do this please help me to solve 

JSP Servlet Questions

problem of confirmation
problem of confirmation  sir, I tried ur code but when i click on cancel it still submits I dont need to pass id as record is already diaplayed...{ } } Please help me, I m stuck. Thanks 

Java3D Questions

help in java
help in java   Team Roster Create a program called TeamRoster... group near the bottom and label each person with an index (e.g. 1,2,3...), print... or help me on this pleas.. 7. Gross And Dozens Design and implement a class 

Java Beginners

connectivity problem
connectivity problem  i am facing error in Class.for name statement please help me correct it the error is ""java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver"" i am using this with netbeans since i have gain 

Development process Questions

menu problem
can not get this link . ya its very stupid question but can any one help me 

JSP Servlet Questions

reconfirm problem
confirm box but when i choose cancel it still submits the form. Please help me...{ } }   Please post your code so that we can help you easily.    

Java Beginners

Please help
Please help  Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons 

JSP Servlet Questions

query problem
to write this query in jsp please anybody help me, and send me that code 

Java Beginners

Snake Problem
to stop the previous thread when i call the next. Please Help its very Important 

JavaScript Questions

having problem with menu ans sub menu items css ...plz help!!
having problem with menu ans sub menu items css ...plz help!!  PLZ help ...this is my html menu > <div id="content"> <div >...'); } ); }); </script> ANY help wud be Much Appreciated. Thanks in advance 

JDBC Questions

result problem
result problem  sir,i have written program given below but that program is not giving proper output.pls help me import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; class filedata extends 

JSP Servlet Questions

mail problem
;/html> Please help Thanks 

Java Beginners

Help With an Array
Help With an Array  // ******************** // Sales.java // // Reads...; x++) {if (number[x] < ) } } } OK, So heres my problem, someone... need help from this part on. I need that part corrected and add a portion 

Java Beginners

Please help
Please help  Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons 

SQL Question

clustered and a non-clustered index?
clustered and a non-clustered index?  What is the difference between clustered and a non-clustered index 

Java Beginners

boolean help
the following methods work sort of like a password. The problem is that watever input... to do with the for loop? Please help import java.io.BufferedReader; import...; The problem with ur code is that assuming u enter Edward, it checks out 

JSP Servlet Questions

Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code java.lang.NullPointerException..., Problem lies in your code. Try the following code: 1)login.jsp: <html> 

Development process Questions

Mysql Btree Index
Mysql Btree Index  Mysql BTree Index Which tree is implemented to btree index? (Binary tree or Bplus tree or Bminus tree 

JSP Servlet Questions

Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code , i am using login.html ,login .jsp,login.java and web.xml code java.lang.NullPointerException org.apache.jsp.loginjsp.jspInit(login_jsp.java:23 

HTML Questions

z-index always on top
z-index always on top  Hi, How to make my div always on top using the z-index property? Thanks   Hi, You can use the following code: .mydiv { z-index:9999; } Thanks 

Swing AWT

java image loadin and saving problem - Swing AWT
the frame savin is nt done plzz help me with this code......... import... SaveImage extends Component { int index; BufferedImage bi, bufferImage; int w... filterImage(){ BufferedImageOp op = null; switch (index){ case 0 

PHP Questions

$_GET[] index is not defined
$_GET[] index is not defined  Hi, What could be solution of the error: $_GET['someparameter'] index is not defined Thanks   Hi, You can use the following code: if (isset($_GET['someparameter'])) { // your code 

Mobile Applications Questions

NSMutableArray change object at Index
NSMutableArray change object at Index   NSMutableArray change object at Index   // Browse all messages (you can use "for (NSDictionary *message in allMessageArray)" enumerate loop but because we need the index 

JSP Servlet Questions

DOM paring problem
: 65: <%=getStat_list(nodeList).get(index)%> 66...: 68: <% java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 for(int index=0; index < nodeList.getLength(); index++) { %> 

JSP Servlet Questions

DOM paring problem
: 65: <%=getStat_list(nodeList).get(index)%> 66...: 68: <% java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 for(int index=0; index < nodeList.getLength(); index++) { %> 

JDBC Questions

checking index in prepared statement
checking index in prepared statement  If we write as follows: String query = "insert into st_details values(?,?,?)"; PreparedStatement ps = con.prepareStatement(query); then after query has been prepared, can we check the index 

Java-Tutorials

JavaScript array index of
JavaScript array index of  In this Tutorial we want to describe that makes you to easy to understand JavaScript array index of. We are using JavaScript... line. 1)index of( )  - This return the position of the value that is hold 

Swing AWT

problem in swing-awt
problem in swing-awt  I am doing project in core java and i am facing one problem. I have to add command prompt(terminal) to the fream at bottom but not getting the solution. So please help me. thanks and regards, Aakash 

Java Beginners

problem in jdbc connection
problem in jdbc connection  when i am trying to insert into apache derby databse using java in netbeans an exceprion is thrown at run time like... will be the reason?? do help 

Struts Questions

struts collection problem in Mozilla
struts collection problem in Mozilla   I used the to get list of records, if records are more than 15-20 then this is not seen properly with vertical scroll bar on Mozilla. Plz help me 

Spring Framework Questions

problem related to onSubmit() method
problem related to onSubmit() method  Hello, I am developing application.when i submit form at that time formBacking() method is call...Instead of that onSubmit() should have to call .... please help me 

Ajax Questions

code problem:ajax - Ajax
code problem:ajax  Hi,I am using ajax to populate a select box.for this I am writing out.write("ONE"); like that.it runs fine in firefox.bt not in IE.Can anyone help me out this... thanks 

SQL Tutorial

Drop Index
Drop Index       Drop Index is used to remove one or more indexes from the current database... Index. In this example, we create a table Stu_Table. The create table is used 

Hibernate Questions

Problem with Hibernate or 11g
Problem with Hibernate or 11g  Hi I am using Hibernate and 11g in my project. The problem I am facing is I am executing a query from java class... on Created date column by using hibernate query language. The Problem is every 

Advertisements Advertisements
 

 

 

DMCA.com