Hello EveryOne im begginer so Guys
****
can you help me with this
how can i count the occurrence of the character ('a') in the String
Alphabet ?
and also this our assignment :
1.Implement the following integer methods.
a.Method celsius returns the Celsius equivalent of a Fahrenheit temperature using the calculation C= 5.0 / 9.0 *(F-32);
b.Method Fahrenheit returns the Fahrenheit equivalent of a Celsius temperature.
F= 9.0 / 5.0 *C+32;
c. Use these methods to write an applet that enables the user to enter either a Fahrenheit temperature and display the Celsius equivalent or enter a Celsius temperature and display the Fahrenheit equivalent.
(NOTE: This applet will require the two JTextField objects that have registered action event. When action Performed is invoked. the ActionEvent parameter has method getSource() to determine the GUI component with which the user interacted.
Your actionPerformed method should contain an if/else structure of the following form:
If(e.getSource() == input1){
//process input1 interaction here
}
Else{ // e.getSource() == input2
//process input2 interaction here
}
Where input1 and input2 are JTextField references)
what will i gonna do ?
can you help me with the codes
Thank you so Much !