[Solved] How to delete item from array list Java eclipse

I advise you re write your code. One mistake to note, you are attempting to create objects of type List. List is not a class and cannot be instantiated, it is an interface that contains methods to be implemented but these methods contain no bodies. To use java.util.List, you must implement it and then implement … Read more

[Solved] Eclipse autocomplete view became wide and block the whole screen [closed]

Eclipse could be remembering the size of the dialog for content assist UI in the workspace/.metadata directory. Try editing this file: <workspace_dir>/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml Look for the section that looks like this: <section name=”completion_proposal_size”> </section> In my workspace there is no special settings here, but perhaps there are some special settings in your workspace. 1 solved Eclipse … Read more

[Solved] Selenium – How to confirm that captcha with two numbers are changed after submit [closed]

Here is the line of code that you have to use the before clicking submit and after clicking submit. Then compare they are not matching. driver.findElement(By.xpath(“//span[@class=”et_pb_contact_captcha_question”]”)).getText(); 0 solved Selenium – How to confirm that captcha with two numbers are changed after submit [closed]

[Solved] Unit Testing (e.g.Specflow) vs Selenium [closed]

This would deeply depend on the whole development lifecycle approach. In an ideal world, developers write unit tests. But someone else needs to test their work (2nd pair of eyes). So a tester would also write tests (whether automated or manual test scripts). Cucumber & TestNG basically work like Unit Tests do, Cucumber specifically is … Read more

[Solved] I am trying to design a program that compares two strings for the same character in the same positions but same error keeps popping up

I did it!!!! public static boolean sameDashes(String a, String b){ int minlength = Math.min(a.length(), b.length()); String smallstring=””; String bigstring=””; if(a.length()== minlength){ smallstring = a; bigstring = b; } else { smallstring = b; bigstring =a; } int counter = 0; int x=0; int y=0; do{ if(smallstring.equals(bigstring)){ return true; } else if(smallstring.indexOf(‘-‘,counter)!= -1){ y++; if(bigstring.charAt(smallstring.indexOf(‘-‘,counter))== ‘-‘){ … Read more

[Solved] Null pointer exception on button send [closed]

Just write your if loop after declaration of your all the views in your onCreate() as below: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); buttonSend = (Button) findViewById(R.id.buttonSend); textTo = (EditText) findViewById(R.id.editTextSendTo); textSubject = (EditText) findViewById(R.id.editTextName); textMessageContact = (EditText) findViewById(R.id.editTextContact); textMessageEmail = (EditText) findViewById(R.id.editTextEmail); textMessageAmount = (EditText) findViewById(R.id.editTextAmount); spinner = (Spinner) findViewById(R.id.spinner); buttonSend.setOnClickListener(new OnClickListener() … Read more