Вход Блог
Строительство и ремонт
Репетиторы
Красота
Фрилансеры
Разные специалисты
Уход за животными
Тренеры
Автоинструкторы

Программисты — удалённая работа в Москве

Дата: 2020-10-20
Детали
Регион
Москва
Занятость
дистанционно
Стоимость
от 2000.00 руб.
Дата публикации
2020-10-20
Описание
Веб-разработка. Разработка с нуля. Язык программирования - Java. Сделать университетское задание. In a class named StringMethods, implement each of the methods described below: a static method called printEveryOther that takes a String as its parameter and prints every other character of the string – i.e., the first character, the third character, etc. For example, a call of printEveryOther(“method“) should produce the following outpu : mto This method should not return a value. Hint: You may find it helpful to use a for loop as part of your implementation of this method. In addition, you will need to use one or more of the String methods that we discussed in lecture. a static method called longerLength that takes two String objects as parameters and returns the length of the longer of the two strings. If the two strings have the same length, you should return that length. For example: a call of longerLength(“bye“, “hello“) should return 5, because 5 is the length of “hello“, which is the longer of the two strings. a call of longerLength(“goodbye“, “hi“) should return 7, because 7 is the length of “goodbye“, which is the longer of the two strings. This method should not do any printing; rather, it should determine the longer length and return it. Hint: You should use conditional execution (i.e., an if-else statement) to determine which length to return. a static method called secondIndexOf that takes as its two parameters a string str and a character ch and returns the index of the second occurrence of ch in str. For example: a call of secondIndexOf(“banana“, 'a') should return 3, because the second occurrence of 'a' in “banana“ occurs at position 3 in the string a call of secondIndexOf(“banana“, 'n') should return 4, because the second occurrence of 'n' in “banana“ occurs at position 4 in the string. You may assume that the string passed in as the first parameter has at least two occurrences of the character passed in as the second parameter. This method should not do any printing; rather, it should return the appropriate integer. a static method called lastNChars that takes as its two parameters a string str and an integer n, and that returns a string consisting of the last n characters of str. For example: a call of lastNChars(“programming“, 5) should return the string “mming“ a call of lastNChars(“programming“, 1) should return the string “g“. You may assume that the value of n is positive. This method should not do any printing. Rather, it should extract the appropriate string and return it. Special case: If the value of n is greater than the length of the string, the method should return the entire string. For example, a call of lastNChars(“programming“, 15) should return the string “programming“. You should use conditional execution to allow your method to handle this special case. Test your code using the following methods' calls: System.out.println(“** part 1 **“); printEveryOther(“method“); System.out.println(); System.out.println(“** part 2 **“); int len = longerLength(“bye“, “hello“); System.out.println(len); System.out.println(); System.out.println(“** part 3, example 1 **“); int index1 = secondIndexOf(“banana“, 'a'); System.out.println(index1); System.out.println(); System.out.println(“** part 3, example 2 **“); int index2 = secondIndexOf(“banana“, 'n'); System.out.println(index2); System.out.println(“** part 4, example 1 **“); String lastN = lastNChars(“programming“, 5); System.out.println(lastN); System.out.println(“** part 4, example 2 **“); lastN = lastNChars(“programming“, 1); System.out.println(lastN); System.out.println();
Похожие заказы

Разработка на Java

дистанционно
договорная
Разработка торгового робота на основе Java (QUIK terminal).
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Привет, я пишу апи тесты и нужно дергать запросы апишками,пейлоады большие и возникают ошибки(ответы некорректные ,null итд) задача сложная и муторная нужна помощь опытного разработчика Язык Java.
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Привет,сразу скажу что нужна помощь ИСКЛЮЧИТЕЛЬНО ОЧНАЯ(личные встречи) потому что компания запрещает подключаться через телемост сторонним людям я пишу апи тесты и нужно дергать запросы апишками,пейлоады большие и возникают ошибки(ответы некорректные ,null итд) Могу приехать к вам(кафе итд) для решения вопроса Язык Java.
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Пожелания и особенности: Хочу чтобы обучили алгоритмам чтобы код можно было свободно писать не прибегая к ии и лишнему гугливанию.
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Cоздание чита для minecraft требования: обширный функционал похожий на чит sigma 5.0(исходники есть на github), обходимость таких серверов как hypixel(полная).
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Нужен сайт для продажи композиций из сухоцветов. По сути, лендинг с несколькими страницами: на главной логотип и кнопки Наши работы, Композиции в наличии, Заказать и т.д. Каждая ведёт на свою страницу, контент уже готов, останется только сверстать. На всех страницах должны быть кнопка Заказать и ссылки на Телеграм и на партнёрский магазин Флау Вау. Дизайн минималистичный и адаптив под телефон обязателен.
Москва Фрилансеры

Разработка на Java

дистанционно
договорная
Пожелания и особенности: Java-разработчик (Middle) с экспертизой в 1С (опыт более 15 лет), Full-Stack специалист.
Москва Фрилансеры