I have this syntax in a file (http response times from analog)
<thead><tr><th class="x">seconds</th><th class="R">reqs</th><th class="r">%reqs</th><th class="B">Gbytes</th><th class="b">%bytes</th></tr></thead>
<tbody><tr><td class="x">0</td><td class="R">10927</td><td class=
Suppose I have two classes, one is the main class A and the other is the class that helps in processing results for A, class B.
Suppose in class A I take user input a1, and a2. Then I have to send these inputs to class B for processing, and with these inputs, B generates a result b1 and b2 (which are not related to a1 and a2 independently, but a1 and a2 together generate these two results).
I created a GlobalVariables class to share variables across multiple classes. But Im now having problem with classcastexception. I have been reading about this exception and I know that I cant cast an instance of main class to the sub class. Still not sure how to change it in my code to get rid of it.
I have to replace a line, if it has a pattern for example
Suppose file.out contains:
Code:
<tr><td class="cB">Hello</td><td class="cB">1245</td><td class="cB">958</td><td class="cRB">1.34</td><td class="cRB">1.36</td></tr>
<tr><td class="cB">world&l
I have file file_1.out which contains the data below
Code:
<tr> MAIL # 1 TO src_1 </tr>
<tr><td class="hcol">col_id</td> <td class="hcol">test_dt</td> <td class="hcol">user_type</td> <td class="hcol">ct</td></tr>
<tr><td class="bcol">1</td> <td class
i have created two classes, actually both of them are an extends Activity
what i am trying to do call a method from the second class
what i am trying to do is calling the a method from second class then implemented in first class, unfortunately i did not success in that.
i need your help to solve this problem.
thank you
my first class
package com.math4kids;
import android.app.Activit
Hi there
I am attempting to modify some code for my own purposes but am finding things tricky as the code is not so well documented with a lot a custom types. As I put things below you should hopefully build a better picture of what I am trying to do.
I have what looks like the following set up.
1. Create a existence of a class based on what appears in a text file.
I know similar questions like mine is being asked everyday but I am a really slow learner and for some reason, none of the other answers helped me understand.
please be patient with me. Thanks
So the whole thing worked when I only had like one class. I had one public class MainActivity that extends Activity. Within that class I had 3 other classes.
I have one serious problem. I was watching some tutorials on YouTube about android programming and after one problems with R.java class appeared. After compiling my project R.java class gets deleted.